Skip to content

Commit

Permalink
Baud Rate Saved to Flash
Browse files Browse the repository at this point in the history
Re-added working code for the v2 to allow the baud rate to be stored to EE memory. Delays of 20ms are required after performing a Baud switch.

Also allowed any errors to be reported via the LED before attempting auto recovery. Easier to see if you are trying to do things too fast.

Re-compiled hex file using XC16 pro and optimisation level 3.
  • Loading branch information
RowlandTechnology committed Jul 7, 2019
1 parent 39e3a6f commit 18fd39e
Show file tree
Hide file tree
Showing 18 changed files with 1,672 additions and 2,367 deletions.
3 changes: 3 additions & 0 deletions MULTIUART.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ void MULTIUART::SetBaud(char UART, char BAUD)

delayMicroseconds(50);
}

delay(20); // waits for 20ms - time for flash erase and write

}
}

Loading

0 comments on commit 18fd39e

Please sign in to comment.