diff --git a/src/sensor/ping360.cpp b/src/sensor/ping360.cpp index e2da138a9..ba9e2f939 100644 --- a/src/sensor/ping360.cpp +++ b/src/sensor/ping360.cpp @@ -540,6 +540,12 @@ void Ping360::flash(const QString& fileUrl, bool sendPingGotoBootloader, int bau if (sendPingGotoBootloader) { qCDebug(PING_PROTOCOL_PING360) << "Put it in bootloader mode."; + + // set the baudrate for two reasons: + // 1: if doing an auto scan, this will break the sensor out of + // automatic transmission mode + // 2: use a low baudrate to decrease chances of corruption in transmission + setBaudRate(9600); ping360_reset m; m.set_bootloader(1); m.updateChecksum();