KmanOz/Sonoff-HomeAssistant

:Not an issue: NodeMCU compatibility of 4 channel firmware

Opened this issue · 1 comments

i changed the pin definition as per nodemcu but the problem is when i push button 1 the esp8266 reboot.

#define BUTTON1 D5 // (Don't Change for Sonoff 4CH)
#define BUTTON2 D6 // (Don't Change for Sonoff 4CH)
#define BUTTON3 D7 // (Don't Change for Sonoff 4CH)
#define BUTTON4 D8 // (Don't Change for Sonoff 4CH)
#define RELAY1 D1 // (Don't Change for Sonoff 4CH)
#define RELAY2 D2 // (Don't Change for Sonoff 4CH)
#define RELAY3 D3 // (Don't Change for Sonoff 4CH)
#define RELAY4 D4 // (Don't Change for Sonoff 4CH)
#define LED D0 // (Don't Change for Sonoff 4CH)

i disabled these four line

else if (count1 >40){
Serial.println("\n\nSonoff Rebooting . . . . . . . . Please Wait");
requestRestart = true;
}