Skip to content

Commit

Permalink
Distribute vTaskDelay() in main loop to avoid some audio dropouts
Browse files Browse the repository at this point in the history
  • Loading branch information
tueddy committed Dec 10, 2023
1 parent 2ef1b07 commit 4b932c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## DEV-branch

* 10.12.2023: Distribute vTaskDelay() in main loop to avoid rare audio dropouts
* 10.12.2023: Fix wrong states on PE output pins (and SD-card failure on restart) #278, thanks to @36b6fp6s !
* 09.12.2023: Fix webstream playlist abort when track fails (#276), thanks to @laszloh !
* 07.12.2023: Show RC522 firmware version at startup, same as PN5180
Expand Down
6 changes: 4 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,13 @@ void loop() {
RotaryEncoder_Cyclic();
Mqtt_Cyclic();
}

vTaskDelay(portTICK_PERIOD_MS * 1u);
AudioPlayer_Cyclic();
vTaskDelay(portTICK_PERIOD_MS * 1u);
Battery_Cyclic();
// Port_Cyclic(); // called by button (controlled via hw-timer)
Button_Cyclic();
vTaskDelay(portTICK_PERIOD_MS * 1u);
System_Cyclic();
Rfid_PreferenceLookupHandler();

Expand All @@ -272,7 +274,7 @@ void loop() {
#endif

IrReceiver_Cyclic();
vTaskDelay(portTICK_PERIOD_MS * 5u);
vTaskDelay(portTICK_PERIOD_MS * 2u);

#ifdef HALLEFFECT_SENSOR_ENABLE
gHallEffectSensor.cyclic();
Expand Down
2 changes: 1 addition & 1 deletion src/revision.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once

#include "gitrevision.h"
constexpr const char softwareRevision[] = "Software-revision: 20231209-1-DEV";
constexpr const char softwareRevision[] = "Software-revision: 20231210-1-DEV";

0 comments on commit 4b932c5

Please sign in to comment.