From 36da4794d296aebe6f5e584fe164784a6ce7308c Mon Sep 17 00:00:00 2001 From: Theo Arends Date: Sun, 29 Apr 2018 13:45:23 +0200 Subject: [PATCH] Fix some language files Fix language files and allow Analog#A0div10 from 0 to 100 --- sonoff/language/cs-CZ.h | 4 ++-- sonoff/language/el-GR.h | 4 ++-- sonoff/language/en-GB.h | 2 +- sonoff/support.ino | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sonoff/language/cs-CZ.h b/sonoff/language/cs-CZ.h index 51296a577..a52f31901 100644 --- a/sonoff/language/cs-CZ.h +++ b/sonoff/language/cs-CZ.h @@ -28,7 +28,7 @@ * Use online command StateText to translate ON, OFF, HOLD and TOGGLE. * Use online command Prefix to translate cmnd, stat and tele. * - * Updated until v5.12.0m + * Updated until v5.12.0n \*********************************************************************/ //#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English) @@ -43,7 +43,7 @@ #define D_HOUR_MINUTE_SEPARATOR ":" #define D_MINUTE_SECOND_SEPARATOR ":" -#define D_DAY3LIST "Po Út St Čt Pá So Ne " +#define D_DAY3LIST "Ne Po Út St Čt Pá So " #define D_MONTH3LIST "LedÚnoBřeDubKvěČvnČvcSrpZářŘíjLisPro" // Non JSON decimal separator diff --git a/sonoff/language/el-GR.h b/sonoff/language/el-GR.h index 7eff7094a..e4280b092 100644 --- a/sonoff/language/el-GR.h +++ b/sonoff/language/el-GR.h @@ -1,7 +1,7 @@ /* el-GR.h - localization for Greek - Greece for Sonoff-Tasmota - Copyright (C) 2018 Harry Kandiloros + Copyright (C) 2018 Kan3Nas This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -28,7 +28,7 @@ * Use online command StateText to translate ON, OFF, HOLD and TOGGLE. * Use online command Prefix to translate cmnd, stat and tele. * - * Updated until v5.12.0m + * Updated until v5.12.0n \*********************************************************************/ //#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English) diff --git a/sonoff/language/en-GB.h b/sonoff/language/en-GB.h index a57d18fd9..ade787b9e 100644 --- a/sonoff/language/en-GB.h +++ b/sonoff/language/en-GB.h @@ -28,7 +28,7 @@ * Use online command StateText to translate ON, OFF, HOLD and TOGGLE. * Use online command Prefix to translate cmnd, stat and tele. * - * Updated until v5.12.0l + * Updated until v5.12.0n \*********************************************************************/ //#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English) diff --git a/sonoff/support.ino b/sonoff/support.ino index da95e4f25..78ac10c0c 100644 --- a/sonoff/support.ino +++ b/sonoff/support.ino @@ -1408,7 +1408,7 @@ void AdcEvery50ms() if ((new_value < adc_last_value -10) || (new_value > adc_last_value +10)) { adc_last_value = new_value; uint16_t value = adc_last_value / 10; - snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("{\"ANALOG\":{\"A0div10\":%d}}"), (0 == value) ? 1 : (value > 99) ? 100 : value); + snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("{\"ANALOG\":{\"A0div10\":%d}}"), (value > 99) ? 100 : value); RulesProcess(); } }