Skip to content

Commit 71e8651

Browse files
committed
RASPBERRYPIの変更処理を修正
1 parent 6250f88 commit 71e8651

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/drivers/rtmouse.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Raspberry Pi 2 B : 2
44
// Raspberry Pi 3 B/A+/B+ : 2
55
// Raspberry Pi 4 B : 4
6-
#define RASPBERRYPI 4
6+
#define RASPBERRYPI 2
77

88
/* --- Device ID --- */
99
#define ID_DEV_LED 0
@@ -175,5 +175,3 @@
175175

176176
/* -- Buffer -- */
177177
#define MAX_BUFLEN 64
178-
// static int buflen = 0;
179-

utils/build_install_header_from_apt_raspi4.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ rm Makefile
1111
ln -s Makefile.header_from_apt Makefile
1212
make clean
1313
# Update for Raspberry Pi 4
14-
sed -i -e "s/#define RASPBERRYPI 2/#define RASPBERRYPI 4/g" rtmouse.c
14+
sed -i -e "s/#define RASPBERRYPI 2/#define RASPBERRYPI 4/g" rtmouse.h
1515
make
1616
sudo insmod rtmouse.ko
1717

utils/build_install_header_from_source_raspi4.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ rm Makefile
1111
ln -s Makefile.header_from_source Makefile
1212
make clean
1313
# Update for Raspberry Pi 4
14-
sed -i -e "s/#define RASPBERRYPI 2/#define RASPBERRYPI 4/g" rtmouse.c
14+
sed -i -e "s/#define RASPBERRYPI 2/#define RASPBERRYPI 4/g" rtmouse.h
1515
make
1616
sudo insmod rtmouse.ko
1717

0 commit comments

Comments
 (0)