mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
SITL: fixed deletion of eeprom.bin
with the new AP_Param constructor order, we need to erase rather than unlink the eeprom
This commit is contained in:
parent
03714fc695
commit
a8c99f3887
@ -7,6 +7,8 @@
|
||||
#include <getopt.h>
|
||||
#include <signal.h>
|
||||
#include <string.h>
|
||||
#include <AP_Common.h>
|
||||
#include <AP_Param.h>
|
||||
#include "desktop.h"
|
||||
|
||||
void setup(void);
|
||||
@ -47,7 +49,7 @@ int main(int argc, char * const argv[])
|
||||
desktop_state.slider = true;
|
||||
break;
|
||||
case 'w':
|
||||
unlink("eeprom.bin");
|
||||
AP_Param::erase_all();
|
||||
unlink("dataflash.bin");
|
||||
break;
|
||||
case 'r':
|
||||
|
Loading…
Reference in New Issue
Block a user