|
|
@ -1349,6 +1349,29 @@ void migrate() { |
|
|
|
setSetting("relayGPIO", 0, 15); |
|
|
|
setSetting("relayType", 0, RELAY_TYPE_NORMAL); |
|
|
|
|
|
|
|
#elif defined(TFLAG_NX_SMX00)
|
|
|
|
|
|
|
|
setSetting("board", 101); |
|
|
|
setSetting("ledGPIO", 0, 0); |
|
|
|
setSetting("ledLogic", 0, 1); |
|
|
|
setSetting("ledMode", 0, LED_MODE_FOLLOW_INVERSE); |
|
|
|
setSetting("ledRelay", 0, 0); |
|
|
|
setSetting("ledGPIO", 1, 15); |
|
|
|
setSetting("ledLogic", 1, 1); |
|
|
|
setSetting("ledMode", 1, LED_MODE_WIFI); |
|
|
|
setSetting("btnGPIO", 0, 13); |
|
|
|
setSetting("btnRelay", 0, 0); |
|
|
|
setSetting("relayGPIO", 0, 12); |
|
|
|
setSetting("relayType", 0, RELAY_TYPE_NORMAL); |
|
|
|
setSetting("selGPIO", 16); |
|
|
|
setSetting("cf1GPIO", 14); |
|
|
|
setSetting("cfGPIO", 5); |
|
|
|
setSetting("pwrRatioC", 632); |
|
|
|
setSetting("pwrRatioV", 313400); |
|
|
|
setSetting("pwrRatioP", 3711185); |
|
|
|
setSetting("hlwSelC", LOW); |
|
|
|
setSetting("hlwIntM", FALLING); |
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
// Allow users to define new settings without migration config
|
|
|
|