From c0617e415fff6e87a9ff93fcac2c38fb65596472 Mon Sep 17 00:00:00 2001 From: sorgelig Date: Tue, 5 Nov 2019 12:41:25 +0800 Subject: [PATCH] PiTop: fix the brightness control. --- brightness.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brightness.cpp b/brightness.cpp index 17e2763..925d196 100644 --- a/brightness.cpp +++ b/brightness.cpp @@ -71,7 +71,7 @@ static int spi_open(int speed, int mode) int fd ; mode &= 3; // Mode is 0, 1, 2 or 3 - if ((fd = open ("/dev/spidev32766.0", O_RDWR)) < 0) + if ((fd = open ("/dev/spidev1.0", O_RDWR)) < 0) { printf("Unable to open SPI device: %s\n", strerror (errno)); return -1;