Skip to content

Commit

Permalink
release v3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorYbema committed Oct 15, 2023
1 parent 0578407 commit 2809e09
Showing 12 changed files with 28 additions and 1 deletion.
26 changes: 26 additions & 0 deletions HeishaMon/HeishaMon.ino
Original file line number Diff line number Diff line change
@@ -905,6 +905,9 @@ void doubleResetDetect() {
Serial.println("Double reset detected, clearing config."); //save to print on std serial because serial switch didn't happen yet
LittleFS.begin();
LittleFS.format();
//create first boot file
File startupFile = LittleFS.open("/heishamon", "w");
startupFile.close();
WiFi.persistent(true);
WiFi.disconnect();
WiFi.persistent(false);
@@ -1051,6 +1054,29 @@ void setup() {
Serial.println(F("--- HEISHAMON ---"));
Serial.println(F("starting..."));

//first boot check, to visually confirm good flash
if (LittleFS.begin()) {
if (LittleFS.exists("/heishamon")) {
//normal boot
} else if (LittleFS.exists("/config.json")) {
//from old firmware, create file and then normal boot
File startupFile = LittleFS.open("/heishamon", "w");
startupFile.close();
} else {
//first boot
File startupFile = LittleFS.open("/heishamon", "w");
startupFile.close();
pinMode(2, FUNCTION_0); //set it as gpio
pinMode(2, OUTPUT);
while (true) {
digitalWrite(2, HIGH);
delay(50);
digitalWrite(2, LOW);
delay(50);
}
}
}

//double reset detect from start
doubleResetDetect();

2 changes: 1 addition & 1 deletion HeishaMon/version.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
static const char* heishamon_version = "3.2-beta-3";
static const char* heishamon_version = "3.2";
Binary file removed binaries/HeishaMon.ino.d1-v2.1-iy-12-opentherm.bin
Binary file not shown.
Binary file removed binaries/HeishaMon.ino.d1-v2.1-iy-12-opentherm2.bin
Binary file not shown.
Binary file removed binaries/HeishaMon.ino.d1-v3.2-beta-1.bin
Binary file not shown.
Binary file removed binaries/HeishaMon.ino.d1-v3.2-beta-2.bin
Binary file not shown.
Binary file removed binaries/HeishaMon.ino.d1-v3.2-beta.bin
Binary file not shown.
Binary file removed binaries/HeishaMon.ino.d1-v3.2-xtra-1.bin
Binary file not shown.
Binary file removed binaries/HeishaMon.ino.d1-v3.2-xtra-2.bin
Binary file not shown.
Binary file removed binaries/HeishaMon.ino.d1-v3.2-xtra-5.bin
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions binaries/HeishaMon.ino.d1-v3.2.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f1d6d62c2b82eb19da5f47d4a63fcb94

0 comments on commit 2809e09

Please sign in to comment.