mirror of
https://github.com/sweidac/kidsbox.git
synced 2025-07-27 19:31:54 +02: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:
@@ -18,11 +18,12 @@ void app_main(void) {
|
|||||||
|
|
||||||
networking.connectWifi();
|
networking.connectWifi();
|
||||||
webInterface.start();
|
webInterface.start();
|
||||||
rfid.start();
|
|
||||||
|
|
||||||
rfid.registerWebResources(&webInterface);
|
rfid.registerWebResources(&webInterface);
|
||||||
webInterface.finishResourceRegistrations();
|
webInterface.finishResourceRegistrations();
|
||||||
|
|
||||||
AudioPlayer audioPlayer; // initialize here, because the ctor does init stuff that fails when executed before `app_main()`
|
AudioPlayer audioPlayer; // initialize here, because the ctor does init stuff that fails when executed before `app_main()`
|
||||||
audioPlayer.play("file://sdcard/howcanwehangontoadream.mp3");
|
audioPlayer.play("file://sdcard/howcanwehangontoadream.mp3");
|
||||||
|
|
||||||
|
rfid.start();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user