This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository enlightenment-module-forecasts.
View the commit online.
commit 5fdc3f0674eb17a5bbb81f2331804e7ab5226fa8
Author: Alastair Poole <nets...@gmail.com>
AuthorDate: Thu Apr 24 12:18:08 2025 +0100
bug: fix for thrice
---
src/e_mod_main.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/e_mod_main.c b/src/e_mod_main.c
index dad4607..e01d5b8 100644
--- a/src/e_mod_main.c
+++ b/src/e_mod_main.c
@@ -706,7 +706,7 @@ _forecasts_parse(void *data)
v *= 3.6;
inst->details.wind.speed = v;
- if (inst->condition.temp <= 10.0 && (inst->condition.temp != TEMP_MIN_OUT_OF_RANGE))
+ if (inst->condition.temp <= 10.0 && (inst->condition.temp != TEMP_MIN_OUT_OF_RANGE) && (inst->condition.temp != TEMP_MAX_OUT_OF_RANGE))
{
double t, vpow;
t = inst->condition.temp;
@@ -846,14 +846,14 @@ _forecasts_display_set(Instance *inst, int ok EINA_UNUSED)
edje_object_part_text_set(inst->forecasts->forecasts_obj, name, inst->forecast[i].desc);
snprintf(name, sizeof(name), "e.text.day%d.high", i);
- if (inst->forecast[i].high != TEMP_MAX_OUT_OF_RANGE)
+ if (inst->forecast[i].high != TEMP_MIN_OUT_OF_RANGE && inst->forecast[i].high != TEMP_MAX_OUT_OF_RANGE)
snprintf(buf, sizeof(buf), "%d°%c", inst->forecast[i].high, inst->units.temp);
else
snprintf(buf, sizeof(buf), "N/A");
edje_object_part_text_set(inst->forecasts->forecasts_obj, name, buf);
snprintf(name, sizeof(name), "e.text.day%d.low", i);
- if (inst->forecast[i].low != TEMP_MIN_OUT_OF_RANGE)
+ if (inst->forecast[i].low != TEMP_MIN_OUT_OF_RANGE && inst->forecast[i].low != TEMP_MAX_OUT_OF_RANGE)
snprintf(buf, sizeof(buf), "%d°%c", inst->forecast[i].low, inst->units.temp);
else
snprintf(buf, sizeof(buf), "N/A");
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.