Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change to new UART defines

  • Loading branch information...
commit 7514155ed05dcc11cf7fd582f36749a4cf008ab6 1 parent 4d223c5
@awatterott awatterott authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 optiboot/optiboot.c
View
6 optiboot/optiboot.c
@@ -455,7 +455,11 @@ int main(void) {
td.u16 += 8; //add correction
td.u16 >>= 4; //div by 16 -> div by 2 (2 data bits) + div by 8
td.u16--; //sub 1
- UBRR0L = td.u8.l;
+#ifdef __AVR_ATmega8__
+ UBRRL = td.u8.l;
+#else
+ UART_SRL = td.u8.l;
+#endif
//wait for sync command
while(getch() != STK_GET_SYNC)
Please sign in to comment.
Something went wrong with that request. Please try again.