summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-01-17 15:57:12 +1100
committerjacqueline <me@jacqueline.id.au>2024-01-17 15:57:12 +1100
commitc0ec19c496591efe970da26c819c2a0dc86c363d (patch)
treeb0267c923ba0f453a5fcd0255c49b3d2ef725078
parenta81c7a8a8667407f5a7b5ba3de549314d2254366 (diff)
downloadtangara-fw-c0ec19c496591efe970da26c819c2a0dc86c363d.tar.gz
fix some properties that got copied wrong
-rw-r--r--src/ui/ui_fsm.cpp3
-rw-r--r--tools/cmake/common.cmake2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/ui_fsm.cpp b/src/ui/ui_fsm.cpp
index 1c30e822..20d52f8e 100644
--- a/src/ui/ui_fsm.cpp
+++ b/src/ui/ui_fsm.cpp
@@ -113,7 +113,7 @@ lua::Property UiState::sPlaybackPlaying{
return true;
}};
-lua::Property UiState::sPlaybackTrack{0};
+lua::Property UiState::sPlaybackTrack{};
lua::Property UiState::sPlaybackPosition{0};
lua::Property UiState::sQueuePosition{0};
@@ -263,6 +263,7 @@ void UiState::react(const internal::DismissAlerts&) {
void UiState::react(const system_fsm::BatteryStateChanged& ev) {
sBatteryPct.Update(static_cast<int>(ev.new_state.percent));
sBatteryMv.Update(static_cast<int>(ev.new_state.millivolts));
+ sBatteryCharging.Update(ev.new_state.is_charging);
}
void UiState::react(const audio::QueueUpdate&) {
diff --git a/tools/cmake/common.cmake b/tools/cmake/common.cmake
index 4e8bea4f..c2f9141e 100644
--- a/tools/cmake/common.cmake
+++ b/tools/cmake/common.cmake
@@ -5,7 +5,7 @@
# For more information about build system see
# 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.
set(COMPONENTS "")