Skip to content

Commit 1c7385f

Browse files
committed
Fixed Voltage Sending in Sensebender
1 parent 1336da1 commit 1c7385f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/MySensors/examples/SensebenderMicro/SensebenderMicro.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,8 @@ void sendBattLevel(bool force)
291291
lastBattery = vcc;
292292

293293
#ifdef BATT_SENSOR
294-
send(msgBatt.set(vcc));
294+
float send_voltage = float(vcc)/1000.0f;
295+
send(msgBatt.set(send_voltage,3));
295296
#endif
296297

297298
// Calculate percentage

0 commit comments

Comments
 (0)