mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 11:02:12 +01:00
Change build parameters for workflow
This commit is contained in:
parent
b324f59c03
commit
775e82b766
5 changed files with 18 additions and 7 deletions
|
|
@ -18,6 +18,7 @@ SomfyShadeController somfy;
|
|||
MQTTClass mqtt;
|
||||
GitUpdater git;
|
||||
|
||||
uint32_t oldheap = 0;
|
||||
void setup() {
|
||||
Serial.begin(115200);
|
||||
Serial.println();
|
||||
|
|
@ -39,6 +40,7 @@ void setup() {
|
|||
|
||||
void loop() {
|
||||
// put your main code here, to run repeatedly:
|
||||
//uint32_t heap = ESP.getFreeHeap();
|
||||
if(rebootDelay.reboot && millis() > rebootDelay.rebootTime) {
|
||||
Serial.print("Rebooting after ");
|
||||
Serial.print(rebootDelay.rebootTime);
|
||||
|
|
@ -65,4 +67,13 @@ void loop() {
|
|||
net.end();
|
||||
ESP.restart();
|
||||
}
|
||||
/*
|
||||
if(heap < oldheap) {
|
||||
Serial.print("Heap: ");
|
||||
Serial.print(oldheap);
|
||||
Serial.print(" -> ");
|
||||
Serial.println(heap);
|
||||
}
|
||||
oldheap = heap;
|
||||
*/
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue