Fix sign error on returned 'current' and 'temperature'
This commit is contained in:
parent
047dd9d6bc
commit
cdc6927e76
2 changed files with 7 additions and 6 deletions
|
@ -307,14 +307,15 @@ namespace create {
|
|||
uint16_t getVoltage() const;
|
||||
|
||||
/* Get current flowing in/out of battery.
|
||||
* A positive current implies Create is charging.
|
||||
* \return value in milliamps
|
||||
*/
|
||||
uint16_t getCurrent() const;
|
||||
int16_t getCurrent() const;
|
||||
|
||||
/* Get the temperature of battery.
|
||||
* \return value in Celsius
|
||||
*/
|
||||
uint8_t getTemperature() const;
|
||||
int8_t getTemperature() const;
|
||||
|
||||
/* Get battery's remaining charge.
|
||||
* \return value in milliamp-hours
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue