Fixed Voltage Sending in Sensebender
This commit is contained in:
@@ -291,7 +291,8 @@ void sendBattLevel(bool force)
|
|||||||
lastBattery = vcc;
|
lastBattery = vcc;
|
||||||
|
|
||||||
#ifdef BATT_SENSOR
|
#ifdef BATT_SENSOR
|
||||||
send(msgBatt.set(vcc));
|
float send_voltage = float(vcc)/1000.0f;
|
||||||
|
send(msgBatt.set(send_voltage,3));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Calculate percentage
|
// Calculate percentage
|
||||||
|
|||||||
Reference in New Issue
Block a user