Skip to content

Commit

Permalink
Fixes tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcr committed Sep 1, 2016
1 parent 32af6ec commit 9e16681
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,3 @@ script:
- cargo build
- cargo test
- cargo doc
- cd ../accel-mma84
- cargo build
- cargo test
- cargo doc
6 changes: 2 additions & 4 deletions tessel/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ pub struct PortGroup {
/// # Example
/// ```
/// use tessel::Port;
///
/// let p = Port{socket_path: "path/to/my/socket"};
/// ```
pub struct Port {
// Path of the domain socket.
Expand Down Expand Up @@ -164,8 +162,8 @@ impl<'p> I2C<'p> {
/// to set the frequency of the I2C Clock
/// # Example
/// ```
/// assert_eq!(compute_baud(1000000), 4);
/// ``
/// assert_eq!(I2C::compute_baud(1000000), 4);
/// ```
fn compute_baud(frequency: u32) -> u8 {

let mut intermediate: f64 = MCU_MAX_SPEED as f64 / frequency as f64;
Expand Down

0 comments on commit 9e16681

Please sign in to comment.