diff --git a/assets/webconfig/js/ui_utils.js b/assets/webconfig/js/ui_utils.js index 8ba84eb1..cae6b50c 100644 --- a/assets/webconfig/js/ui_utils.js +++ b/assets/webconfig/js/ui_utils.js @@ -207,7 +207,7 @@ function initLanguageSelection() { // If language is not supported by hyperion, try fallback language langLocale = $.i18n().options.fallbackLocale.substring(0,2); - langIdx = availLang.indexOf(langLocale) + langIdx = availLang.indexOf(langLocale); if ( langIdx > -1 ) { langText = availLangText[langIdx]; diff --git a/assets/webconfig/js/wizard.js b/assets/webconfig/js/wizard.js index e4ba1700..53b4379e 100644 --- a/assets/webconfig/js/wizard.js +++ b/assets/webconfig/js/wizard.js @@ -1552,7 +1552,7 @@ function assign_yeelight_lights(){ options+= '>'+$.i18n(txt+val)+''; } - var enabled = 'enabled' + var enabled = 'enabled'; if (! models.includes (lights[lightid].model) ) { var enabled = 'disabled'; @@ -1752,7 +1752,7 @@ async function discover_atmoorb_lights(multiCastGroup, multiCastPort){ // TODO: error case unhandled // res can be: false (timeout) or res.error (not found) if(res && !res.error){ - const r = res.info + const r = res.info; // Process devices returned by discovery for(const device of r.devices) @@ -1832,10 +1832,10 @@ function assign_atmoorb_lights(){ options+= '>'+$.i18n(txt+val)+''; } - var enabled = 'enabled' + var enabled = 'enabled'; if ( orbId < 1 || orbId > 255 ) { - enabled = 'disabled' + enabled = 'disabled'; options = ''; } diff --git a/libsrc/leddevice/dev_net/LedDeviceYeelight.cpp b/libsrc/leddevice/dev_net/LedDeviceYeelight.cpp index 968b4561..2a0e6c5d 100644 --- a/libsrc/leddevice/dev_net/LedDeviceYeelight.cpp +++ b/libsrc/leddevice/dev_net/LedDeviceYeelight.cpp @@ -247,7 +247,7 @@ int YeelightLight::writeCommand( const QJsonDocument &command, QJsonArray &resul if ( elapsedTime < _waitTimeQuota ) { int waitTime = _waitTimeQuota; - log ( 1, "writeCommand():", "Wait %dms, elapsedTime: %llms < quotaTime: %dms", waitTime, elapsedTime, _waitTimeQuota); + log ( 1, "writeCommand():", "Wait %dms, elapsedTime: %dms < quotaTime: %dms", waitTime, elapsedTime, _waitTimeQuota); // Wait time (in ms) before doing next write to not overrun Yeelight command quota std::this_thread::sleep_for(std::chrono::milliseconds(_waitTimeQuota));