diff options
author | Dean Camera <[email protected]> | 2010-07-11 14:14:08 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2010-07-11 14:14:08 +0000 |
commit | 229935184b3ca7eda9edd6b7d7851f53b2441a65 (patch) | |
tree | 011238e1c71075780e859a8d7e83490b197c5350 /Projects/XPLAINBridge/Lib/SoftUART.h | |
parent | 2b0d93c1297f5d7dd6af1bb0b8d599313a61bdd5 (diff) | |
download | qmk_firmware-229935184b3ca7eda9edd6b7d7851f53b2441a65.tar.gz qmk_firmware-229935184b3ca7eda9edd6b7d7851f53b2441a65.zip |
Major changes to the XPLAINBridge software UART code for performance and reliability. New code reduces the number of missed characters and misread characters.
Diffstat (limited to 'Projects/XPLAINBridge/Lib/SoftUART.h')
-rw-r--r-- | Projects/XPLAINBridge/Lib/SoftUART.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Projects/XPLAINBridge/Lib/SoftUART.h b/Projects/XPLAINBridge/Lib/SoftUART.h index a685a6d8fa..a107d48a8f 100644 --- a/Projects/XPLAINBridge/Lib/SoftUART.h +++ b/Projects/XPLAINBridge/Lib/SoftUART.h @@ -43,7 +43,7 @@ /* Macros: */ #define BAUD 9600 - #define BIT_TIME ((F_CPU + (BAUD / 2)) / BAUD) + #define BIT_TIME ((F_CPU / BAUD) - 1) #define SRX PD0 #define SRXPIN PIND |