|
@ -739,6 +739,26 @@ void migrate() { |
|
|
setSetting("relayGPIO", 0, 5); |
|
|
setSetting("relayGPIO", 0, 5); |
|
|
setSetting("relayType", 0, RELAY_TYPE_NORMAL); |
|
|
setSetting("relayType", 0, RELAY_TYPE_NORMAL); |
|
|
|
|
|
|
|
|
|
|
|
#elif defined(TONBUX_POWERSTRIP02)
|
|
|
|
|
|
|
|
|
|
|
|
setSetting("board", 56); |
|
|
|
|
|
setSetting("relayGPIO", 0, 4); |
|
|
|
|
|
setSetting("relayGPIO", 1, 13); |
|
|
|
|
|
setSetting("relayGPIO", 2, 12); |
|
|
|
|
|
setSetting("relayGPIO", 3, 14); |
|
|
|
|
|
setSetting("relayGPIO", 4, 16); |
|
|
|
|
|
setSetting("relayType", 0, RELAY_TYPE_INVERSE); |
|
|
|
|
|
setSetting("relayType", 1, RELAY_TYPE_INVERSE); |
|
|
|
|
|
setSetting("relayType", 2, RELAY_TYPE_INVERSE); |
|
|
|
|
|
setSetting("relayType", 3, RELAY_TYPE_INVERSE); |
|
|
|
|
|
setSetting("relayType", 4, RELAY_TYPE_NORMAL); |
|
|
|
|
|
setSetting("ledGPIO", 0, 0); |
|
|
|
|
|
setSetting("ledLogic", 0, 0); |
|
|
|
|
|
setSetting("ledGPIO", 1, 3); |
|
|
|
|
|
setSetting("ledLogic", 1, 0); |
|
|
|
|
|
setSetting("btnGPIO", 0, 5); |
|
|
|
|
|
setSetting("btnRelay", 0, 0); |
|
|
|
|
|
|
|
|
#else
|
|
|
#else
|
|
|
|
|
|
|
|
|
// Allow users to define new settings without migration config
|
|
|
// Allow users to define new settings without migration config
|
|
|