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(); }