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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

@ -1 +1 @@
Subproject commit b768829c633dd8fa344b744382d7d75c71c4229f
Subproject commit f53e75063b6ef618d65a1f287df52ba01c3351f5

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;