Skip to content

Commit ef4a879

Browse files
committed
warning and tests
1 parent 8d6dba8 commit ef4a879

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
//! .with_protocol_v1()
5151
//! .with_serial_port(serial_port);
5252
//!
53-
//! let pos = c.read_present_position(&vec![1, 2]).unwrap();
53+
//! let pos = c.sync_read_present_position(&vec![1, 2]).unwrap();
5454
//! println!("Motors present position: {:?}", pos);
5555
//!
56-
//! c.write_goal_position(&vec![1, 2], &vec![0.0, 90.0_f64.to_radians()]).unwrap();
56+
//! c.sync_write_goal_position(&vec![1, 2], &vec![0.0, 90.0_f64.to_radians()]).unwrap();
5757
//! ```
5858
5959
pub mod servo;

src/servo/feetech/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pub mod sts3215;
21
pub mod scs0009;
2+
pub mod sts3215;

src/servo/feetech/scs0009.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ impl Conversion for AnglePosition {
8787
}
8888
}
8989

90+
#[allow(non_camel_case_types)]
9091
pub struct BigEndian_u16;
9192
impl Conversion for BigEndian_u16 {
9293
type RegisterType = u16;
@@ -101,6 +102,7 @@ impl Conversion for BigEndian_u16 {
101102
}
102103
}
103104

105+
#[allow(non_camel_case_types)]
104106
pub struct BigEndian_i16;
105107
impl Conversion for BigEndian_i16 {
106108
type RegisterType = u16;

0 commit comments

Comments
 (0)