From 9c314d88cff1e8bc078cf6769d140f7cf26ecf56 Mon Sep 17 00:00:00 2001 From: bonamin Date: Tue, 3 Feb 2026 15:46:47 +0200 Subject: [PATCH] Fixed Infinite Play bug When Infinite Play was set once, it was never reset. --- vesper/documentation/common_commands.txt | 29 ++++++++++++++++++++++++ vesper/documentation/features.info | 17 +++++++++++++- vesper/src/Player/Player.cpp | 5 ++-- 3 files changed, 47 insertions(+), 4 deletions(-) create mode 100644 vesper/documentation/common_commands.txt diff --git a/vesper/documentation/common_commands.txt b/vesper/documentation/common_commands.txt new file mode 100644 index 0000000..a65226a --- /dev/null +++ b/vesper/documentation/common_commands.txt @@ -0,0 +1,29 @@ +COMMANDS: + +{ + "cmd":"system", + "contents": + { + "action":"force_update", + "channel":"beta" + } +} + + +{ + "cmd":"system", + "contents": + { + "action":"set_mqtt_log_level", + "level":3 + } +} + + +{ + "cmd":"system", + "contents": + { + "action":"restart" + } +} diff --git a/vesper/documentation/features.info b/vesper/documentation/features.info index c2ebf04..1fbc67e 100644 --- a/vesper/documentation/features.info +++ b/vesper/documentation/features.info @@ -7,6 +7,10 @@ eg. PV25K07BC01R01 PV 25 K 07 BC 01 R 01 PV [Y] [M] [D] [BT] [RV] R [BC] +// SERBIA_OLD: PV25K07BC01R01 +// SERBIA_NEW: PV26A28BC01R01 + +// XRISTIANIKH_ELPIS: PV26B02BP01R01 PV25L22BP01R01 @@ -82,4 +86,15 @@ HW: 1.0 u6545309759@gmail.com bellsystems2025 -aCx!97IEfTiA073^#*Jj \ No newline at end of file +aCx!97IEfTiA073^#*Jj + + +// XRISTIANIKH_ELPIS: + +PV26B02BP01R01 +Bell Plus +HW: 1.0 + + +mail: christianikielpis@gmail.com +pass: bellsystems2025 \ No newline at end of file diff --git a/vesper/src/Player/Player.cpp b/vesper/src/Player/Player.cpp index 80b61a1..dac5389 100644 --- a/vesper/src/Player/Player.cpp +++ b/vesper/src/Player/Player.cpp @@ -237,9 +237,8 @@ void Player::setMelodyAttributes(JsonVariant doc) { continuous_loop = doc["continuous_loop"].as(); } - if (continuous_loop && total_duration == 0) { - infinite_play = true; - } + // Recalculate infinite_play based on current values (reset first!) + infinite_play = (continuous_loop && total_duration == 0); if (!continuous_loop) { total_duration = segment_duration;