mirror of
https://github.com/sweidac/kidsbox.git
synced 2026-10-28 06:52:57 +01:00
Start rfid after the audioplayer to make the rfid callbacks work.
This might bread events from the audio-hardware.
This commit is contained in:
1 parent
93cced767f
commit
dffa2e6205
1 file changed
+2
-1
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user