Files
WLED_MM_Infinity/wled00
Frank 4bbf1ba584 sunrise/sunset: fix for ambiguous error value
sunset = 0 is a valid result, as the function result is in UTC and not local time .
Example: local time is UTC-8, local sunrise = 08:00am => getSunriseUTC()  = 0.

So we cannot use "0" for "invalid". Using UINT16_MAX resolves the problem, and even allows to simplify calculateSunriseAndSunset() a bit.
2023-12-29 17:19:53 +01:00
..
2023-12-29 17:04:42 +01:00
2023-12-12 14:48:51 +01:00
2023-12-14 22:10:30 +01:00
2023-12-23 23:37:37 +01:00
2023-06-07 21:56:55 +02:00
2023-12-16 18:44:54 +01:00
2023-12-14 22:05:55 +01:00
2023-11-27 18:19:31 +01:00
2023-12-16 23:01:25 +01:00
2023-11-27 18:19:31 +01:00
2023-12-16 23:01:25 +01:00
2023-12-15 00:18:11 +01:00
2023-12-15 00:18:11 +01:00
2023-01-06 09:24:29 +01:00
2023-12-29 17:04:42 +01:00
2023-03-22 16:31:07 +01:00
2023-11-27 17:52:28 +01:00
2023-05-30 16:09:51 +02:00
2023-12-15 22:09:48 +01:00
2023-08-20 18:53:35 +02:00
2023-11-27 17:52:27 +01:00
2023-12-14 22:05:55 +01:00
2023-12-14 22:05:55 +01:00
2023-01-06 09:24:29 +01:00
2023-01-06 09:24:29 +01:00
2023-02-21 17:07:32 +01:00
2022-03-20 22:12:18 +01:00
2023-12-19 11:28:46 +01:00
2023-12-29 17:04:42 +01:00