mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-29 20:55:42 +08:00
Ref T189, use blink to indicate reading
SetOn with reset time is now private
This commit is contained in:
@@ -125,7 +125,7 @@ namespace BlackGui
|
||||
case CEntityFlags::ReadSkipped:
|
||||
case CEntityFlags::ReadFinished:
|
||||
case CEntityFlags::ReadFinishedRestricted:
|
||||
led->setOn(true, resetTimeMs);
|
||||
led->blink(resetTimeMs); // blink here (temp. "on"), since read from cache results in immediate ReadFinished
|
||||
break;
|
||||
case CEntityFlags::StartRead:
|
||||
led->setOn(true);
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace BlackGui
|
||||
bool value() const { return m_state; }
|
||||
|
||||
//! Allows to set the led value {true, false}
|
||||
void setOn(bool on, int resetTimeMs = -1);
|
||||
void setOn(bool on) { this->setOn(on, -1); }
|
||||
|
||||
//! Set to on for resetTimeMs
|
||||
void blink(int resetTimeMs = 500);
|
||||
@@ -156,6 +156,9 @@ namespace BlackGui
|
||||
//! Init
|
||||
void init();
|
||||
|
||||
//! Allows to set the led value {true, false}
|
||||
void setOn(bool on, int resetTimeMs);
|
||||
|
||||
//! Reset the state
|
||||
void resetState();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user