[9X] Model not stored on EEPROM upon creation

When TEMPLATES option disabled...
This commit is contained in:
Bertrand Songis
2015-09-06 16:39:16 +02:00
parent 3dc47f39ea
commit ebad326256
+4 -2
View File
@@ -366,13 +366,15 @@ void defaultInputs()
#if defined(TEMPLATES) #if defined(TEMPLATES)
inline void applyDefaultTemplate() inline void applyDefaultTemplate()
{ {
applyTemplate(TMPL_SIMPLE_4CH); applyTemplate(TMPL_SIMPLE_4CH); // calls eeDirty internally
} }
#else #else
void applyDefaultTemplate() void applyDefaultTemplate()
{ {
#if defined(VIRTUALINPUTS) #if defined(VIRTUALINPUTS)
defaultInputs(); defaultInputs(); // calls eeDirty internally
#else
eeDirty(EE_MODEL);
#endif #endif
for (int i=0; i<NUM_STICKS; i++) { for (int i=0; i<NUM_STICKS; i++) {