mirror of
https://github.com/traccar/traccar.git
synced 2025-01-07 03:07:01 +08:00
Actualizar Gt06ProtocolDecoder.java
Co-authored-by: Anton Tananaev <anton.tananaev@gmail.com>
This commit is contained in:
parent
5443747272
commit
3c4f028d04
@ -850,7 +850,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
|
||||
} else {
|
||||
int battery = buf.readUnsignedByte();
|
||||
if ("NT20".equals(model) && type == MSG_GPS_LBS_2) {
|
||||
battery = (int) (battery * 0.1);
|
||||
battery = battery / 10;
|
||||
}
|
||||
if (battery <= 6) {
|
||||
position.set(Position.KEY_BATTERY_LEVEL, battery * 100 / 6);
|
||||
|
Loading…
Reference in New Issue
Block a user