Skip to content

Commit

Permalink
chore(bHaptics): change fake battery level
Browse files Browse the repository at this point in the history
  • Loading branch information
leon0399 authored Jul 7, 2024
1 parent 5b419e7 commit fb0ffc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bhaptics_ble/senseshift/bh/ble/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ namespace SenseShift::BH::BLE {
batteryChar->addDescriptor(new BLE2902());
#endif

// original bHaptics Player require non-null value for battery level, otherwise it crashes
uint16_t defaultLevel = 0;
// original bHaptics Player requires a non-null value for battery level; otherwise, it crashes
uint16_t defaultLevel = 100;

this->batteryChar->setValue(defaultLevel);
// this->batteryChar->notify();
Expand Down

0 comments on commit fb0ffc0

Please sign in to comment.