Skip to main content

device_errors

Function device_errors 

Source
pub const fn device_errors() -> Frame
Expand description

Asks the radio what it has failed at.

§Returns

The command. The radio answers over the bytes the payload leaves for it, which calibration_failed then reads.

§Examples

use pamoja_radios::sx1302::sx1261::{device_errors, OP_GET_DEVICE_ERRORS};

assert_eq!(device_errors().opcode(), OP_GET_DEVICE_ERRORS);
assert_eq!(device_errors().payload().len(), 3);