Skip to main content

commit

Function commit 

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

Takes the patch into use.

§Returns

The command, which takes no payload. Until it is sent the patch is written but not running, and the version string still reads as whatever it did before.

§Examples

use pamoja_radios::sx1302::sx1261::{commit, OP_UPDATE_PRAM};

assert_eq!(commit().opcode(), OP_UPDATE_PRAM);
assert!(commit().payload().is_empty());