Skip to content

Commit 812e08f

Browse files
committed
ix servo struct to use int setting
1 parent 38d4f48 commit 812e08f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/packet.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl MspParser {
117117
'X' => MSPVersion::V2,
118118
_=> {
119119
self.reset();
120-
return Ok(None);
120+
return Err(MspPacketParseError::InvalidHeader2);
121121
},
122122
};
123123

@@ -131,7 +131,7 @@ impl MspParser {
131131
33 => self.packet_direction = MspPacketDirection::Unsupported, // '!' error
132132
_ => {
133133
self.reset();
134-
return Ok(None);
134+
return Err(MspPacketParseError::InvalidDirection);
135135
}
136136
}
137137

0 commit comments

Comments
 (0)