Camilo Rojas

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: DevStatusReq and libxDot-mbed5 #31026
    Camilo Rojas
    Participant

    Hi Jason,

    myXdotbat.getBatteryLevel() reads an ADC pin, makes calculations and returns a value from 0 to 255.

    We resolved the issue by calling the class member function with no object (static):

    virtual uint8_t MeasureBattery(void) {
      return Xdotbat::getBatteryLevel();
    }

    Thank you.

Viewing 1 post (of 1 total)