Skip to content

Commit 2bba144

Browse files
committed
fix bus speed typo unwrap
1 parent dfdada7 commit 2bba144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl AnteaterExpressData {
123123
longitude: self.longitude,
124124
bearing: Some(self.heading),
125125
odometer: None,
126-
speed: Some((bus.ground_speed.unwrap_or(0.0) as f32 * (1.0 / 3.6)) as f32),
126+
speed: Some((self.ground_speed as f32 * (1.0 / 3.6)) as f32),
127127
});
128128
}
129129

0 commit comments

Comments
 (0)