Update Notification::On/Off enum rename (#59)

In https://github.com/InfiniTimeOrg/InfiniTime/pull/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.
This commit is contained in:
NeroBurner
2022-09-05 22:54:25 +02:00
committed by GitHub
parent 25ce4b20a3
commit 6e423c9a48
2 changed files with 4 additions and 3 deletions

View File

@@ -570,8 +570,9 @@ int command_settings(const std::string &program_name, const std::vector<std::str
{
auto notif = settingsController.GetNotificationStatus();
auto notif_str = [](auto val) {
if (val == Settings::Notification::ON) return "ON";
if (val == Settings::Notification::OFF) return "OFF";
if (val == Settings::Notification::On) return "On";
if (val == Settings::Notification::Off) return "Off";
if (val == Settings::Notification::Sleep) return "Sleep";
return "unknown";
}(notif);
std::cout << "NotificationStatus: " << static_cast<int>(notif) << " " << notif_str << std::endl;