From 458d8bc8eb2fccdd41c0e31c585164518b04c877 Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Sun, 13 Feb 2011 12:04:09 +0100 Subject: [PATCH] Fuel level can sometimes(?) be 0xA - ignore it. --- SCX/GUI.pm | 2 ++ protocol.txt | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/SCX/GUI.pm b/SCX/GUI.pm index 6af8317..a57c653 100755 --- a/SCX/GUI.pm +++ b/SCX/GUI.pm @@ -246,6 +246,8 @@ sub set_throttle { sub set_fuel { my ($self, $row, $val) = @_; + return if $val > 8; + $self->set_image('image_fuel', $row, 'fuel', $val || 0); } diff --git a/protocol.txt b/protocol.txt index f9bca11..ed2ec77 100644 --- a/protocol.txt +++ b/protocol.txt @@ -153,6 +153,11 @@ Example: 55 D6 88 88 88 00 50 AA 3D 55 D6 88 18 88 14 50 AA 7F +A packet with 0xA fuel level has been seen: +55 D6 AA 88 88 14 50 AA 25 +- this is with cars 0 and 1 active. The meaning of this still has to be +determined. + 0xD7 - brake setting -------------------- -- 2.43.0