diff --git a/radio/src/storage/eeprom_common.cpp b/radio/src/storage/eeprom_common.cpp index bd8138b6b..dffab63fb 100644 --- a/radio/src/storage/eeprom_common.cpp +++ b/radio/src/storage/eeprom_common.cpp @@ -132,7 +132,7 @@ void storageEraseAll(bool warn) TRACE("storageEraseAll"); generalDefault(); - setModelDefault(0); + setModelDefaults(0); if (warn) { ALERT(STR_STORAGE_WARNING, STR_BAD_RADIO_DATA, AU_BAD_RADIODATA); diff --git a/radio/src/tests/gtests.h b/radio/src/tests/gtests.h index 7a95d6688..7ecf7a3eb 100644 --- a/radio/src/tests/gtests.h +++ b/radio/src/tests/gtests.h @@ -27,6 +27,7 @@ #define SWAP_DEFINED #include "opentx.h" +#include "model_init.h" #define CHANNEL_MAX (1024*256)