]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix LCD SS pin configuration
authorFred Sundvik <fsundvik@gmail.com>
Wed, 19 Apr 2017 04:59:39 +0000 (07:59 +0300)
committerFred Sundvik <fsundvik@gmail.com>
Wed, 19 Apr 2017 04:59:39 +0000 (07:59 +0300)
There was a typo, so the attempted configuration proably didn't do
what it should have done. I think it left the pin floating, and
could cause the LCD problems issue-1230.

keyboards/ergodox/infinity/drivers/gdisp/st7565ergodox/board_ST7565.h

index e8c17e6e336c0a89cff12624170d25cf4213209e..9650ffb4405f6273a553dcecaef4a37a3d45a736 100644 (file)
@@ -75,7 +75,7 @@ static GFXINLINE void init_board(GDisplay *g) {
     palSetPad(ST7565_GPIOPORT, ST7565_RST_PIN);
     palSetPadModeRaw(MOSI, ST7565_SPI_MODE);
     palSetPadModeRaw(SLCK, ST7565_SPI_MODE);
-    palSetPadModeRaw(SS, PAL_MODE_OUTPUT_PUSHPULL);
+    palSetPadModeNamed(SS, PAL_MODE_OUTPUT_PUSHPULL);
 
     spiInit();
     spiStart(&SPID1, &spi1config);