Skip to content

Commit 6e423c9

Browse files
authored
Update Notification::On/Off enum rename (#59)
In InfiniTimeOrg/InfiniTime#1261 the enums for Notification ON/OFF were renamed to On/Off and the additional entry `Sleep` was added. Update `littlefs-do` to this change.
1 parent 25ce4b2 commit 6e423c9

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

InfiniTime

Submodule InfiniTime updated 94 files

littlefs-do-main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,8 +570,9 @@ int command_settings(const std::string &program_name, const std::vector<std::str
570570
{
571571
auto notif = settingsController.GetNotificationStatus();
572572
auto notif_str = [](auto val) {
573-
if (val == Settings::Notification::ON) return "ON";
574-
if (val == Settings::Notification::OFF) return "OFF";
573+
if (val == Settings::Notification::On) return "On";
574+
if (val == Settings::Notification::Off) return "Off";
575+
if (val == Settings::Notification::Sleep) return "Sleep";
575576
return "unknown";
576577
}(notif);
577578
std::cout << "NotificationStatus: " << static_cast<int>(notif) << " " << notif_str << std::endl;

0 commit comments

Comments
 (0)