fix some properties that got copied wrong

custom
jacqueline 1 year ago
parent a81c7a8a86
commit c0ec19c496
  1. 3
      src/ui/ui_fsm.cpp
  2. 2
      tools/cmake/common.cmake

@ -113,7 +113,7 @@ lua::Property UiState::sPlaybackPlaying{
return true; return true;
}}; }};
lua::Property UiState::sPlaybackTrack{0}; lua::Property UiState::sPlaybackTrack{};
lua::Property UiState::sPlaybackPosition{0}; lua::Property UiState::sPlaybackPosition{0};
lua::Property UiState::sQueuePosition{0}; lua::Property UiState::sQueuePosition{0};
@ -263,6 +263,7 @@ void UiState::react(const internal::DismissAlerts&) {
void UiState::react(const system_fsm::BatteryStateChanged& ev) { void UiState::react(const system_fsm::BatteryStateChanged& ev) {
sBatteryPct.Update(static_cast<int>(ev.new_state.percent)); sBatteryPct.Update(static_cast<int>(ev.new_state.percent));
sBatteryMv.Update(static_cast<int>(ev.new_state.millivolts)); sBatteryMv.Update(static_cast<int>(ev.new_state.millivolts));
sBatteryCharging.Update(ev.new_state.is_charging);
} }
void UiState::react(const audio::QueueUpdate&) { void UiState::react(const audio::QueueUpdate&) {

@ -5,7 +5,7 @@
# For more information about build system see # For more information about build system see
# https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html # https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html
set(PROJECT_VER "0.1.0") set(PROJECT_VER "0.1.1")
# Build only the subset of components that we actually depend on. # Build only the subset of components that we actually depend on.
set(COMPONENTS "") set(COMPONENTS "")

Loading…
Cancel
Save