Gtests false positive

SYSTEM_RESET function added to avoid this kind of error
This commit is contained in:
Bertrand Songis
2015-09-16 20:35:37 +02:00
parent 9af87b228c
commit 064c58d858
2 changed files with 16 additions and 0 deletions
+7
View File
@@ -22,6 +22,13 @@ void doMixerCalculations();
#define RADIO_RESET()
#endif
inline void SYSTEM_RESET()
{
g_eeGeneral.currModel = 0;
memset(modelHeaders, 0, sizeof(modelHeaders));
generalDefault();
}
inline void MODEL_RESET()
{
memset(&g_model, 0, sizeof(g_model));