Skip to content

Sync issue when host sends multiple signon requests #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Make ArduinoISP code formatting compliant with examples_formatter.conf
  • Loading branch information
per1234 committed Sep 26, 2020
commit ed2de12e009f12e07fb741f82d17f65988f0c0d3
3 changes: 2 additions & 1 deletion examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,9 @@ uint8_t spi_transaction(uint8_t a, uint8_t b, uint8_t c, uint8_t d) {
void empty_reply() {
if (CRC_EOP == getch()) {
// clear RX buffer. No more host data expected until after SYNC.
while (SERIAL.available())
while (SERIAL.available()) {
SERIAL.read();
}
SERIAL.print((char)STK_INSYNC);
SERIAL.print((char)STK_OK);
} else {
Expand Down