Browse Source

0.7.49

moved convertHtml.py to script directory
pull/1163/head
lumapu 1 year ago
parent
commit
64fafa1d36
  1. 7
      scripts/convertHtml.py
  2. 3
      src/hm/miPayload.h
  3. 2
      src/platformio.ini

7
src/web/html/convert.py → 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:

3
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) {

2
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 =

Loading…
Cancel
Save