|
@ -1327,6 +1327,18 @@ void migrate() { |
|
|
setSetting("relayGPIO", 0, 12); |
|
|
setSetting("relayGPIO", 0, 12); |
|
|
setSetting("relayType", 0, RELAY_TYPE_NORMAL); |
|
|
setSetting("relayType", 0, RELAY_TYPE_NORMAL); |
|
|
|
|
|
|
|
|
|
|
|
#elif defined(ITEAD_SONOFF_MINI)
|
|
|
|
|
|
|
|
|
|
|
|
setSetting("board", 99); |
|
|
|
|
|
setSetting("ledGPIO", 0, 13); |
|
|
|
|
|
setSetting("ledLogic", 0, 1); |
|
|
|
|
|
setSetting("btnGPIO", 0, 0); |
|
|
|
|
|
setSetting("btnRelay", 0, 0); |
|
|
|
|
|
setSetting("btnGPIO", 1, 4); |
|
|
|
|
|
setSetting("btnRelay", 1, 0); |
|
|
|
|
|
setSetting("relayGPIO", 0, 12); |
|
|
|
|
|
setSetting("relayType", 0, RELAY_TYPE_NORMAL); |
|
|
|
|
|
|
|
|
#else
|
|
|
#else
|
|
|
|
|
|
|
|
|
// Allow users to define new settings without migration config
|
|
|
// Allow users to define new settings without migration config
|
|
|