Skip to content

Commit

Permalink
msp: ignore eeprom writes from vtxes
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Nov 5, 2023
1 parent 87444bf commit f1b93f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/io/msp.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,7 @@ static void msp_process_serial_cmd(msp_t *msp, msp_magic_t magic, uint16_t cmd,
case MSP_EEPROM_WRITE: {
if (msp->device == MSP_DEVICE_VTX) {
msp_vtx_detected = 1;
}
if (!flags.arm_state && msp->device != MSP_DEVICE_SPI_RX) {
} else if (!flags.arm_state && msp->device != MSP_DEVICE_SPI_RX) {
flash_save();
looptime_reset();
}
Expand Down

0 comments on commit f1b93f3

Please sign in to comment.