Skip to content

Commit

Permalink
send the message 10x
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxxzer committed Dec 20, 2023
1 parent 01e0568 commit 64bbac3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sensor/ping360.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,10 @@ void Ping360::flash(const QString& fileUrl, bool sendPingGotoBootloader, int bau
ping360_reset m;
m.set_bootloader(1);
m.updateChecksum();
writeMessage(m);
// send the message 10x
for (int i = 0; i < 10; i++) {
writeMessage(m);
}
}

// Wait for bytes to be written before finishing the connection
Expand Down

0 comments on commit 64bbac3

Please sign in to comment.