fix reconnect gamepad

This commit is contained in:
2022-12-13 16:26:28 +01:00
parent f14992c040
commit 1f80548797
10 changed files with 99 additions and 43 deletions
+2
View File
@@ -3,4 +3,6 @@
-> Program battery pack tracking
-> Add an beeper
-> Program the beeper
-> GPS-Menu without Wlan NtripClient
-> CaptureRoute Modus crash when someone try's to save a point
+26
View File
@@ -0,0 +1,26 @@
ps3.h
void ps3ResetGlobals();
ps3.c
void ps3ResetGlobals() {
// Own Code
is_active = false;
ps3_connection_cb = NULL;
ps3_connection_object_cb = NULL;
ps3_connection_object = NULL;
ps3_event_cb = NULL;
ps3_event_object_cb = NULL;
ps3_event_object = NULL;
}
Ps3Controller.h
private
void resetGlobals();
Ps3Controller.cpp
void Ps3Controller::resetGlobals() {
ps3ResetGlobals();
}
in -> Ps3Controller::begin
this->resetGlobals();