Correct threshold direction
This commit is contained in:
parent
7358665d93
commit
32853138fe
2 changed files with 3 additions and 3 deletions
|
@ -77,9 +77,9 @@ async fn main(_spawner: Spawner) {
|
|||
DhtError::Timeout => serial.send_msg("dht timeout error\n").await.unwrap(),
|
||||
DhtError::CrcMismatch(data, crc) => {
|
||||
serial.send_msg("dht checksum error\n").await.unwrap();
|
||||
serial.send_number(data, 10).await.unwrap();
|
||||
serial.send_number(data, 16).await.unwrap();
|
||||
serial.send_msg("\n").await.unwrap();
|
||||
serial.send_number(crc, 10).await.unwrap();
|
||||
serial.send_number(crc, 16).await.unwrap();
|
||||
serial.send_msg("\n").await.unwrap();
|
||||
}
|
||||
DhtError::ReadError => serial.send_msg("dht read error\n").await.unwrap(),
|
||||
|
|
|
@ -24,7 +24,7 @@ impl<'d, PIO: Instance, const SM: usize> DhtPio<'d, PIO, SM> {
|
|||
config.set_out_pins(&[&pin]);
|
||||
config.set_set_pins(&[&pin]);
|
||||
config.set_in_pins(&[&pin]);
|
||||
config.shift_out.threshold = 32;
|
||||
config.shift_in.threshold = 32;
|
||||
config.clock_divider = 125.to_fixed();
|
||||
sm.set_config(&config);
|
||||
|
||||
|
|
Loading…
Reference in a new issue