Skip to content

Commit

Permalink
Delete print funcs for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayashi-Yudai committed Nov 27, 2021
1 parent e30d039 commit 9ec05e7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/helpers/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ pub fn get_data(id: c_short, flag: Arc<Mutex<i8>>, dataset: Arc<Mutex<Vec<RawDat
break;
}
let device_status = interface::status(false);
println!("Retreiving");

if device_status.status == 3 {
length = min(device_status.ch1_datalen, device_status.ch2_datalen);
Expand Down Expand Up @@ -208,10 +207,6 @@ mod test {
let correct_ys = [0, 1, 5, 9, 16];
let correct_lens = [2, 1, 3, 1, 2];
for i in 0..5 {
println!("x: {}", dataset[i].x);
println!("y: {}", dataset[i].len);
println!("len: {}", dataset[i].len);
println!("");
assert_eq!(dataset[i].x, i as i32);
assert_eq!(dataset[i].y, correct_ys[i]);
assert_eq!(dataset[i].len, correct_lens[i]);
Expand Down

0 comments on commit 9ec05e7

Please sign in to comment.