Fixed Infinite Play bug
When Infinite Play was set once, it was never reset.
This commit is contained in:
29
vesper/documentation/common_commands.txt
Normal file
29
vesper/documentation/common_commands.txt
Normal file
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -7,6 +7,10 @@ eg. PV25K07BC01R01
|
|||||||
PV 25 K 07 BC 01 R 01
|
PV 25 K 07 BC 01 R 01
|
||||||
PV [Y] [M] [D] [BT] [RV] R [BC]
|
PV [Y] [M] [D] [BT] [RV] R [BC]
|
||||||
|
|
||||||
|
// SERBIA_OLD: PV25K07BC01R01
|
||||||
|
// SERBIA_NEW: PV26A28BC01R01
|
||||||
|
|
||||||
|
// XRISTIANIKH_ELPIS: PV26B02BP01R01
|
||||||
|
|
||||||
|
|
||||||
PV25L22BP01R01
|
PV25L22BP01R01
|
||||||
@@ -83,3 +87,14 @@ HW: 1.0
|
|||||||
u6545309759@gmail.com
|
u6545309759@gmail.com
|
||||||
bellsystems2025
|
bellsystems2025
|
||||||
aCx!97IEfTiA073^#*Jj
|
aCx!97IEfTiA073^#*Jj
|
||||||
|
|
||||||
|
|
||||||
|
// XRISTIANIKH_ELPIS:
|
||||||
|
|
||||||
|
PV26B02BP01R01
|
||||||
|
Bell Plus
|
||||||
|
HW: 1.0
|
||||||
|
|
||||||
|
|
||||||
|
mail: christianikielpis@gmail.com
|
||||||
|
pass: bellsystems2025
|
||||||
@@ -237,9 +237,8 @@ void Player::setMelodyAttributes(JsonVariant doc) {
|
|||||||
continuous_loop = doc["continuous_loop"].as<bool>();
|
continuous_loop = doc["continuous_loop"].as<bool>();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (continuous_loop && total_duration == 0) {
|
// Recalculate infinite_play based on current values (reset first!)
|
||||||
infinite_play = true;
|
infinite_play = (continuous_loop && total_duration == 0);
|
||||||
}
|
|
||||||
|
|
||||||
if (!continuous_loop) {
|
if (!continuous_loop) {
|
||||||
total_duration = segment_duration;
|
total_duration = segment_duration;
|
||||||
|
|||||||
Reference in New Issue
Block a user