fix gamepad access pointer

This commit is contained in:
2022-12-27 13:55:06 +01:00
parent 490473c2ee
commit 0613512937
+1 -1
View File
@@ -84,7 +84,6 @@ void setup() {
Network::setIps();
Network::setupMQTT();
wifiIsActive = Network::connectWifi();
driveManager = new DriveManager(&moveController, gamepad, wifiIsActive);
if (wifiIsActive) {
// const char* remoteHost = "www.google.com";
@@ -111,6 +110,7 @@ void setup() {
std::cout << "All actions from the main program run on Core -> " << xPortGetCoreID() << std::endl;
gamepad = new Ps3Controller;
driveManager = new DriveManager(&moveController, gamepad, wifiIsActive);
configureController();
outputBuf->activateMqtt(false);