Skip to content

Commit

Permalink
for SOFT_UART, set initial state of pin to HIGH ("idle")
Browse files Browse the repository at this point in the history
  • Loading branch information
WestfW committed Oct 21, 2021
1 parent c9bbfb2 commit c377eb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion optiboot/bootloaders/optiboot/optiboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,8 @@ int main(void) {
#endif

#if SOFT_UART
/* Set TX pin as output */
/* Set TX pin as HIGH output */
UART_PIN |= _BV(UART_TX_BIT);
UART_DDR |= _BV(UART_TX_BIT);
#endif

Expand Down

0 comments on commit c377eb8

Please sign in to comment.