Browse Source

Removing debug-stuff + changing pinning for PN5180

master
Torsten Stauder 4 years ago
parent
commit
0d32557735
  1. 2
      platformio.ini
  2. 6
      src/AudioPlayer.cpp
  3. 2
      src/revision.h

2
platformio.ini

@ -29,7 +29,7 @@ lib_deps =
https://github.com/kkloesener/MFRC522_I2C.git#121a27e
https://github.com/miguelbalboa/rfid.git#ba72b92
https://github.com/tuniii/LogRingBuffer.git#89d7d3e
https://github.com/tueddy/PN5180-Library.git#0353104
https://github.com/tueddy/PN5180-Library.git#2d9ae3d
platform_packages =
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#1.0.6
;platformio/framework-arduinoespressif32 @ https://github.com/tuniii/arduino-esp32-v1.0.6-wt#v1.0.6-patched

6
src/AudioPlayer.cpp

@ -23,7 +23,7 @@
#define AUDIOPLAYER_VOLUME_INIT 3u
playProps gPlayProperties;
uint32_t cnt123 = 0;
//uint32_t cnt123 = 0;
// Volume
static uint8_t AudioPlayer_CurrentVolume = AUDIOPLAYER_VOLUME_INIT;
@ -275,10 +275,10 @@ void AudioPlayer_Task(void *parameter) {
bool audioReturnCode;
for (;;) {
if (cnt123++ % 100 == 0) {
/*if (cnt123++ % 100 == 0) {
snprintf(Log_Buffer, Log_BufferLength, "%u", uxTaskGetStackHighWaterMark(NULL));
Log_Println(Log_Buffer, LOGLEVEL_DEBUG);
}
}*/
if (xQueueReceive(gVolumeQueue, &currentVolume, 0) == pdPASS) {
snprintf(Log_Buffer, Log_BufferLength, "%s: %d", (char *) FPSTR(newLoudnessReceivedQueue), currentVolume);
Log_Println(Log_Buffer, LOGLEVEL_INFO);

2
src/revision.h

@ -1,4 +1,4 @@
#ifndef __REVISION_H__
#define __REVISION_H__
constexpr const char softwareRevision[] PROGMEM = "Software-revision: 20211004-1";
constexpr const char softwareRevision[] PROGMEM = "Software-revision: 20211007-1";
#endif
Loading…
Cancel
Save