Skip to content

Commit

Permalink
fix servo struct to use int setting
Browse files Browse the repository at this point in the history
  • Loading branch information
amfern committed Jun 28, 2020
1 parent 38d4f48 commit 673d619
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ pub struct MspServoConfig {
pub min: u16,
pub max: u16,
pub middle: u16,
pub rate: u8,
pub rate: i8,
pub unused1: u8,
pub unused2: u8,
pub forward_from_channel: u8, // Depracted, set to 255 for backward compatibility
Expand Down Expand Up @@ -732,9 +732,9 @@ pub struct MspSetServoMixer {
pub struct MspServoMixer {
pub target_channel: u8,
pub input_source: u8,
pub rate: u16,
pub rate: i16,
pub speed: u8,
pub condition_id: u8,
pub condition_id: i8,
}

#[derive(PackedStruct, Debug, Copy, Clone)]
Expand Down

0 comments on commit 673d619

Please sign in to comment.