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:
parent
25ce4b20a3
commit
6e423c9a48
|
@ -1 +1 @@
|
||||||
Subproject commit b768829c633dd8fa344b744382d7d75c71c4229f
|
Subproject commit f53e75063b6ef618d65a1f287df52ba01c3351f5
|
|
@ -570,8 +570,9 @@ int command_settings(const std::string &program_name, const std::vector<std::str
|
||||||
{
|
{
|
||||||
auto notif = settingsController.GetNotificationStatus();
|
auto notif = settingsController.GetNotificationStatus();
|
||||||
auto notif_str = [](auto val) {
|
auto notif_str = [](auto val) {
|
||||||
if (val == Settings::Notification::ON) return "ON";
|
if (val == Settings::Notification::On) return "On";
|
||||||
if (val == Settings::Notification::OFF) return "OFF";
|
if (val == Settings::Notification::Off) return "Off";
|
||||||
|
if (val == Settings::Notification::Sleep) return "Sleep";
|
||||||
return "unknown";
|
return "unknown";
|
||||||
}(notif);
|
}(notif);
|
||||||
std::cout << "NotificationStatus: " << static_cast<int>(notif) << " " << notif_str << std::endl;
|
std::cout << "NotificationStatus: " << static_cast<int>(notif) << " " << notif_str << std::endl;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user