Skip to content

Commit 673d619

Browse files
committed
fix servo struct to use int setting
1 parent 38d4f48 commit 673d619

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/structs.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ pub struct MspServoConfig {
437437
pub min: u16,
438438
pub max: u16,
439439
pub middle: u16,
440-
pub rate: u8,
440+
pub rate: i8,
441441
pub unused1: u8,
442442
pub unused2: u8,
443443
pub forward_from_channel: u8, // Depracted, set to 255 for backward compatibility
@@ -732,9 +732,9 @@ pub struct MspSetServoMixer {
732732
pub struct MspServoMixer {
733733
pub target_channel: u8,
734734
pub input_source: u8,
735-
pub rate: u16,
735+
pub rate: i16,
736736
pub speed: u8,
737-
pub condition_id: u8,
737+
pub condition_id: i8,
738738
}
739739

740740
#[derive(PackedStruct, Debug, Copy, Clone)]

0 commit comments

Comments
 (0)