forked from EmbeddedTeam/app_photomagnetic
🎈 perf: 将枚举StatusId的成员按照规定的数据帧调整,如数据帧7E E7 02 01 00 D1 90的数据部分是00,即该数据帧对应数据协议的待机状态,则枚举的第一个成员改为kStandy。
This commit is contained in:
parent
beb9a3e4a2
commit
013c68fda4
@ -15,7 +15,7 @@ auto &led_strip = ZPP_DRV_GET(ledstrip::Indicator, DT_NODELABEL(indicator));
|
|||||||
enum Command { kTemp = 0x00, kGetId, kRunningState };
|
enum Command { kTemp = 0x00, kGetId, kRunningState };
|
||||||
enum RunningState {};
|
enum RunningState {};
|
||||||
constexpr auto kDeviceIdSize = 20;
|
constexpr auto kDeviceIdSize = 20;
|
||||||
enum StatusId : uint8_t { kRunning, kPause, kError, kStandby };
|
enum StatusId : uint8_t { kStandby, kRunning, kPause, kError };
|
||||||
volatile bool flag{false};
|
volatile bool flag{false};
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user