Skip to main content

image_failed

Function image_failed 

Source
pub const fn image_failed(third: u8) -> bool
Expand description

Whether the device errors say image calibration failed.

§Arguments

  • third - the third byte the device errors command answered with.

§Returns

Whether the image calibration bit is set.

§Examples

use pamoja_radios::sx1302::sx1250::image_failed;

assert!(image_failed(0b0001_0000));
assert!(!image_failed(0b0000_0000));