Added Mobile UI power indicator

This commit is contained in:
cschwinne 2018-10-06 14:53:15 +02:00
parent 75a61f85db
commit f98b0beee5
4 changed files with 55 additions and 29 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -45,7 +45,7 @@
//version code in format yymmddb (b = daily build) //version code in format yymmddb (b = daily build)
#define VERSION 1810041 #define VERSION 1810061
char versionString[] = "0.8.0"; char versionString[] = "0.8.0";

View File

@ -621,6 +621,7 @@ bool handleSet(String req)
//main toggle on/off //main toggle on/off
pos = req.indexOf("&T="); pos = req.indexOf("&T=");
if (pos > 0) { if (pos > 0) {
nightlightActive = false; //always disable nightlight when toggling
switch (req.substring(pos + 3).toInt()) switch (req.substring(pos + 3).toInt())
{ {
case 0: if (bri != 0){briLast = bri; bri = 0;} break; //off case 0: if (bri != 0){briLast = bri; bri = 0;} break; //off