summaryrefslogtreecommitdiff
path: root/hid/src/main.cpp
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-08-20 00:57:55 +0300
committerDevaev Maxim <[email protected]>2018-08-20 00:57:55 +0300
commit49b83948c0a41bb807be716a866b02a5c4124833 (patch)
treed5bf3c3d8b807e48e9d63778179522767cb57227 /hid/src/main.cpp
parent61f7db14a8ee49623d6a01a81f40957e086a0187 (diff)
two-way communication between hid and kvmd
Diffstat (limited to 'hid/src/main.cpp')
-rw-r--r--hid/src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/hid/src/main.cpp b/hid/src/main.cpp
index 1a415a6f..31b45515 100644
--- a/hid/src/main.cpp
+++ b/hid/src/main.cpp
@@ -72,7 +72,6 @@ INLINE void cmdMouseWheelEvent() { // 2 bytes
CMD_SERIAL.read(); // unused
CMD_SERIAL.read(); // unused
AbsoluteMouse.move(0, 0, delta_y);
- CMD_SERIAL.println(delta_y);
}
@@ -81,6 +80,7 @@ void setup() {
CMD_SERIAL.begin(CMD_SERIAL_SPEED);
BootKeyboard.begin();
AbsoluteMouse.begin();
+ CMD_SERIAL.write(0);
}
void loop() {
@@ -93,5 +93,6 @@ void loop() {
case 4: cmdMouseWheelEvent(); break;
default: break;
}
+ CMD_SERIAL.write(0);
}
}