1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

Make implicit conversion explicit.

This commit is contained in:
Thomas Harte 2021-07-16 17:45:14 -04:00
parent 5bfedff8d1
commit eab9bc1503

View File

@ -62,7 +62,7 @@ struct SpeakerDelegate: public Outputs::Speaker::Speaker::Delegate, public LockP
struct ActivityObserver: public Activity::Observer { struct ActivityObserver: public Activity::Observer {
void register_led(const std::string &name, uint8_t flags) final { void register_led(const std::string &name, uint8_t flags) final {
[machine addLED:[NSString stringWithUTF8String:name.c_str()] isPersistent:flags & Activity::Observer::LEDPresentation::Persistent]; [machine addLED:[NSString stringWithUTF8String:name.c_str()] isPersistent:(flags & Activity::Observer::LEDPresentation::Persistent) ? YES : NO];
} }
void set_led_status(const std::string &name, bool lit) final { void set_led_status(const std::string &name, bool lit) final {