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:
Andrew Tridgell 2012-08-08 18:01:06 +10:00
parent 72935345ea
commit eeaa855b03
1 changed files with 3 additions and 1 deletions

View File

@ -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':