fix gamepad read and access

This commit is contained in:
2022-12-27 13:55:36 +01:00
parent 0613512937
commit 009d42f947
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ void Autopilot::runAutopilot() {
this->selfDrivingAvailable = true;
if (!this->selfDriving && this->selfDrivingAvailable)
this->setSelfDriving(Ps3.data.button.triangle);
this->setSelfDriving(this->gamepad->data.button.triangle);
if (this->routeInfo.currentPoint == this->routeInfo.totalPoints) {
this->navigationEnded = true;