From e82cd2aeaefb73617c1a63edd21782799bfde36a Mon Sep 17 00:00:00 2001 From: Magnus Persson Date: Mon, 17 Oct 2022 20:27:22 +0200 Subject: [PATCH] Fix build errors --- script/create_versionjson.py | 36 ------------------------------------ src/main.cpp | 2 +- 2 files changed, 1 insertion(+), 37 deletions(-) diff --git a/script/create_versionjson.py b/script/create_versionjson.py index 5f72ffe..e00f849 100644 --- a/script/create_versionjson.py +++ b/script/create_versionjson.py @@ -12,42 +12,6 @@ def after_build(source, target, env): dir = env.GetLaunchDir() #name = env.get( "PIOENV" ) - # Copy file 1 - source = dir + "/data/index.min.htm" - target = dir + "/bin/index.min.htm" - print( "Copy file : " + source + " -> " + target ) - shutil.copyfile( source, target ) - - # Copy file 2 - source = dir + "/data/config.min.htm" - target = dir + "/bin/config.min.htm" - print( "Copy file : " + source + " -> " + target ) - shutil.copyfile( source, target ) - - # Copy file 3 - source = dir + "/data/about.min.htm" - target = dir + "/bin/about.min.htm" - print( "Copy file : " + source + " -> " + target ) - shutil.copyfile( source, target ) - - # Copy file 4 - source = dir + "/data/calibration.min.htm" - target = dir + "/bin/calibration.min.htm" - print( "Copy file : " + source + " -> " + target ) - shutil.copyfile( source, target ) - - # Copy file 5 - source = dir + "/data/format.min.htm" - target = dir + "/bin/format.min.htm" - print( "Copy file : " + source + " -> " + target ) - shutil.copyfile( source, target ) - - # Copy file 6 - source = dir + "/data/test.min.htm" - target = dir + "/bin/test.min.htm" - print( "Copy file : " + source + " -> " + target ) - shutil.copyfile( source, target ) - target = dir + "/bin/version.json" ver = get_build_flag_value("CFG_APPVER") diff --git a/src/main.cpp b/src/main.cpp index 24c1bd9..527fc43 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -42,7 +42,7 @@ BatteryVoltage myBatteryVoltage; #ifdef DEACTIVATE_SLEEPMODE const int interval = 1000; // ms, time to wait between changes to output #else -int interval = 200; // ms, time to wait between changes to output +int interval = 200; // ms, time to wait between changes to output #endif bool sleepModeAlwaysSkip = false; // Flag set in web interface to override normal behaviour