The user function was called twice in the PS4BT and XBOXONESBT drivers

This commit is contained in:
Kristian Sloth Lauszus 2021-01-24 14:36:45 +01:00
parent 5af56accc3
commit 785886eadf
2 changed files with 2 additions and 6 deletions

View file

@ -65,10 +65,8 @@ protected:
virtual void OnInitBTHID() {
PS4Parser::Reset();
enable_sixaxis(); // Make the controller send out the entire output report
if (pFuncOnInit)
pFuncOnInit(); // Call the user function
else
setLed(Blue);
if (!pFuncOnInit)
setLed(Blue); // Only call this is a user function has not been set
};
/** Used to reset the different buffers to there default values */

View file

@ -64,8 +64,6 @@ protected:
*/
virtual void OnInitBTHID() {
XBOXONESParser::Reset();
if (pFuncOnInit)
pFuncOnInit(); // Call the user function
};
/** Used to reset the different buffers to there default values */