Skip to content

Commit

Permalink
setBatteryLevel disabled
Browse files Browse the repository at this point in the history
setBatteryLevel disabled to make compatible with NimBLE 1.4.0

Will add back after NimBLE makes it's next official release with it back in
  • Loading branch information
lemmingDev authored Sep 6, 2022
1 parent 7533b37 commit 47ee476
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BleGamepad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1311,13 +1311,15 @@ bool BleGamepad::isConnected(void)

void BleGamepad::setBatteryLevel(uint8_t level)
{
/*
this->batteryLevel = level;
if (hid != 0){
this->hid->setBatteryLevel(this->batteryLevel);
if (this->isConnected()){
this->hid->batteryLevel()->notify();
}
}
*/
}

void BleGamepad::taskServer(void *pvParameter)
Expand Down

0 comments on commit 47ee476

Please sign in to comment.