mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
The user function was called twice in the PS4BT and XBOXONESBT drivers
This commit is contained in:
parent
5af56accc3
commit
785886eadf
2 changed files with 2 additions and 6 deletions
6
PS4BT.h
6
PS4BT.h
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue