Skip to content

Commit

Permalink
refactor: update esp32-hal-timer to IDF v5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
zehnm committed Feb 4, 2025
1 parent 70421c6 commit 90c8e77
Show file tree
Hide file tree
Showing 5 changed files with 295 additions and 258 deletions.
13 changes: 5 additions & 8 deletions src/IRutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -822,16 +822,13 @@ String addDayToString(const uint8_t day_of_week, const int8_t offset,
/// @return The resulting String.
String dayToString(const uint8_t day_of_week, const int8_t offset) {
if ((uint8_t)(day_of_week + offset) < 7)
#if UNIT_TEST
return String(kThreeLetterDayOfWeekStr).substr(
(day_of_week + offset) * 3, 3);
#elif defined(ARDUINO)
return String(kThreeLetterDayOfWeekStr).substring(
(day_of_week + offset) * 3, (day_of_week + offset) * 3 + 3);
#else // UNIT_TEST
#if defined(ARDUINO)
return String(kThreeLetterDayOfWeekStr).substring(
(day_of_week + offset) * 3, (day_of_week + offset) * 3 + 3);
#endif // UNIT_TEST
#else // ARDUINO
return String(kThreeLetterDayOfWeekStr).substr(
(day_of_week + offset) * 3, 3);
#endif // ARDUINO
else
return kUnknownStr;
}
Expand Down
Loading

0 comments on commit 90c8e77

Please sign in to comment.