From 4b945ac358427d5ae06bd878ab33f2f8e8f75806 Mon Sep 17 00:00:00 2001 From: mtei <2170248+mtei@users.noreply.github.com> Date: Fri, 20 Jul 2018 03:29:27 +0900 Subject: [PATCH] Adjust sampling timing of serial signal being received --- keyboards/helix/serial.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/keyboards/helix/serial.c b/keyboards/helix/serial.c index ec7da520eb..8cc390973d 100644 --- a/keyboards/helix/serial.c +++ b/keyboards/helix/serial.c @@ -22,28 +22,28 @@ #if SELECT_SERIAL_SPEED == 0 // Very High speed #define SERIAL_DELAY 4 // micro sec - #define READ_WRITE_START_ADJUST 30 // cycles - #define READ_WRITE_WIDTH_ADJUST 10 // cycles + #define READ_WRITE_START_ADJUST 5 // cycles + #define READ_WRITE_WIDTH_ADJUST 2 // cycles #elif SELECT_SERIAL_SPEED == 1 // High speed #define SERIAL_DELAY 6 // micro sec - #define READ_WRITE_START_ADJUST 23 // cycles - #define READ_WRITE_WIDTH_ADJUST 10 // cycles + #define READ_WRITE_START_ADJUST 5 // cycles + #define READ_WRITE_WIDTH_ADJUST 2 // cycles #elif SELECT_SERIAL_SPEED == 2 // Middle speed #define SERIAL_DELAY 12 // micro sec - #define READ_WRITE_START_ADJUST 25 // cycles - #define READ_WRITE_WIDTH_ADJUST 10 // cycles + #define READ_WRITE_START_ADJUST 5 // cycles + #define READ_WRITE_WIDTH_ADJUST 2 // cycles #elif SELECT_SERIAL_SPEED == 3 // Low speed #define SERIAL_DELAY 24 // micro sec - #define READ_WRITE_START_ADJUST 25 // cycles - #define READ_WRITE_WIDTH_ADJUST 10 // cycles + #define READ_WRITE_START_ADJUST 5 // cycles + #define READ_WRITE_WIDTH_ADJUST 2 // cycles #elif SELECT_SERIAL_SPEED == 4 // Very Low speed #define SERIAL_DELAY 50 // micro sec - #define READ_WRITE_START_ADJUST 25 // cycles - #define READ_WRITE_WIDTH_ADJUST 10 // cycles + #define READ_WRITE_START_ADJUST 5 // cycles + #define READ_WRITE_WIDTH_ADJUST 2 // cycles #else #error Illegal Serial Speed #endif