|| $bytes[5] != 0xFF;
for my $car (0..5) {
- $self->track->car($car)->set_lap(undef);
+ $self->track->car($car)->set_lap(0);
$self->track->car($car)->set_laptime(undef);
}
+ $self->track->race_setup($bytes[0] == 0x00
+ ? 0
+ : $bytes[1] & 0x0F * 256
+ + $bytes[2] & 0x0F * 16
+ + $bytes[3] & 0x0F);
+
return $msg; # FIXME - to be implemented
}
return $msg; # FIXME - to be implemented
}
-
sub controller_status_packet {
my ($self, @bytes) = @_;