From bfa7b480a7a537fc5496c8d9ffbf560f3a02314d Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 30 Sep 2014 22:26:59 +0100 Subject: stmhal: For spi_init, add argument to select if NSS pin is enabled. Most of the time you don't use the NSS pin of the SPI bus, and so it shouldn't be enabled by default (this gave some bugs in the past). --- stmhal/lcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stmhal/lcd.c') diff --git a/stmhal/lcd.c b/stmhal/lcd.c index ea7699be7..a47fffcd9 100644 --- a/stmhal/lcd.c +++ b/stmhal/lcd.c @@ -263,7 +263,7 @@ STATIC mp_obj_t pyb_lcd_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n init->CRCPolynomial = 0; // init the SPI bus - spi_init(lcd->spi); + spi_init(lcd->spi, false); // set the pins to default values lcd->pin_cs1->gpio->BSRRL = lcd->pin_cs1->pin_mask; -- cgit v1.2.3