aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/XPLAINBridge/XPLAINBridge.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-05-26 07:51:25 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-05-26 07:51:25 +0000
commit1c407b9669c0658ee9eb8b188818135ea04215e4 (patch)
tree3fe0aa8d3d42941f39a00e1c7b5f351f98b04ca2 /Projects/XPLAINBridge/XPLAINBridge.c
parentf64e3db07ac167bf0b64bf429a53721f1848e91d (diff)
downloadlufa-1c407b9669c0658ee9eb8b188818135ea04215e4.tar.gz
lufa-1c407b9669c0658ee9eb8b188818135ea04215e4.tar.bz2
lufa-1c407b9669c0658ee9eb8b188818135ea04215e4.zip
Switch software UART over to timer 1 and remove timer prescaling to try to prevent integer rounding errors and thus minimize the possible error of the UART code.
Diffstat (limited to 'Projects/XPLAINBridge/XPLAINBridge.c')
-rw-r--r--Projects/XPLAINBridge/XPLAINBridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Projects/XPLAINBridge/XPLAINBridge.c b/Projects/XPLAINBridge/XPLAINBridge.c
index 308c2abc3..d92e2b493 100644
--- a/Projects/XPLAINBridge/XPLAINBridge.c
+++ b/Projects/XPLAINBridge/XPLAINBridge.c
@@ -156,7 +156,7 @@ void SetupHardware(void)
_delay_ms(10);
/* Select the firmware mode based on the JTD pin's value */
- CurrentFirmwareMode = MODE_USART_BRIDGE;//(PINF & (1 << 7)) ? MODE_USART_BRIDGE : MODE_PDI_PROGRAMMER;
+ CurrentFirmwareMode = (PINF & (1 << 7)) ? MODE_USART_BRIDGE : MODE_PDI_PROGRAMMER;
/* Re-enable JTAG debugging */
MCUCR &= ~(1 << JTD);