Skip to content

Commit

Permalink
Print channel and PDU type
Browse files Browse the repository at this point in the history
  • Loading branch information
jmichelp committed Jul 6, 2023
1 parent 3b341f2 commit 929f32d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion demos/nrf52-scanner/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ mod app {
where
I: Iterator<Item = AdStructure<'a>>,
{
rprint!("[{:?} ", metadata.timestamp.unwrap().ticks());
rprint!(
"[{:?}] CH:{:?} Type:{:?} ",
metadata.timestamp.unwrap().ticks(),
metadata.channel,
metadata.pdu_type.unwrap(),
);
if let Some(rssi) = metadata.rssi {
rprint!("RSSI:{:?}dBm ", rssi);
}
Expand Down

0 comments on commit 929f32d

Please sign in to comment.