diff --git a/src/web/html/convert.py b/scripts/convertHtml.py
similarity index 97%
rename from src/web/html/convert.py
rename to scripts/convertHtml.py
index c4471f3f..70d5f6e2 100644
--- a/src/web/html/convert.py
+++ b/scripts/convertHtml.py
@@ -147,9 +147,7 @@ def convert2Header(inFile, version):
f.close()
# delete all files in the 'h' dir
-wd = 'h'
-if os.getcwd()[-4:] != "html":
- wd = "web/html/" + wd
+wd = 'web/html/h'
if os.path.exists(wd):
for f in os.listdir(wd):
@@ -160,8 +158,7 @@ if os.path.exists(wd):
os.remove(os.path.join(wd, f))
# grab all files with following extensions
-if os.getcwd()[-4:] != "html":
- os.chdir('./web/html')
+os.chdir('./web/html')
types = ('*.html', '*.css', '*.js', '*.ico') # the tuple of file types
files_grabbed = []
for files in types:
diff --git a/src/hm/miPayload.h b/src/hm/miPayload.h
index ddef9c99..022f55f9 100644
--- a/src/hm/miPayload.h
+++ b/src/hm/miPayload.h
@@ -585,12 +585,13 @@ class MiPayload {
if(!*complete) {
//we got some delayed status msgs?!?
- if (txCmd == 0x09 || txCmd == 0x11)
+ if ((txCmd == 0x09) || (txCmd == 0x11)) {
if (mPayload[iv->id].stsAB[CH0] && mPayload[iv->id].dataAB[CH0]) {
miComplete(iv);
return true;
}
return false;
+ }
DPRINTLN(DBG_VERBOSE, F("incomlete, txCmd is 0x") + String(txCmd, HEX));
if (txCmd >= 0x36 && txCmd <= 0x39) {
diff --git a/src/platformio.ini b/src/platformio.ini
index 85c4cf67..77b8e724 100644
--- a/src/platformio.ini
+++ b/src/platformio.ini
@@ -20,7 +20,7 @@ monitor_speed = 115200
extra_scripts =
pre:../scripts/auto_firmware_version.py
- pre:web/html/convert.py
+ pre:../scripts/convertHtml.py
pre:../scripts/applyPatches.py
lib_deps =