From dffa2e62059b5670c3068bc83b1c7ee98e47efca Mon Sep 17 00:00:00 2001 From: Simon Weidacher Date: Sun, 26 Dec 2021 14:00:30 +0100 Subject: [PATCH] Start rfid after the audioplayer to make the rfid callbacks work. This might bread events from the audio-hardware. --- device/main/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/device/main/main.cpp b/device/main/main.cpp index ab355b3..fe12280 100644 --- a/device/main/main.cpp +++ b/device/main/main.cpp @@ -18,11 +18,12 @@ void app_main(void) { networking.connectWifi(); webInterface.start(); - rfid.start(); rfid.registerWebResources(&webInterface); webInterface.finishResourceRegistrations(); AudioPlayer audioPlayer; // initialize here, because the ctor does init stuff that fails when executed before `app_main()` audioPlayer.play("file://sdcard/howcanwehangontoadream.mp3"); + + rfid.start(); }