mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-19 23:31:03 +10:00
fix: Update battery voltage reading and adjust path length handling in ChannelMessage
This commit is contained in:
@@ -3043,7 +3043,7 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
try {
|
||||
final reader = BufferReader(frame);
|
||||
reader.skipBytes(1);
|
||||
_batteryMillivolts = reader.readInt16LE();
|
||||
_batteryMillivolts = reader.readUInt16LE();
|
||||
_storageUsedKb = reader.readUInt32LE();
|
||||
_storageTotalKb = reader.readUInt32LE();
|
||||
final volts = (_batteryMillivolts! / 1000.0).toStringAsFixed(2);
|
||||
|
||||
Reference in New Issue
Block a user