Skip to content

Commit 0f0c234

Browse files
committed
Extract the fsk Flag into a use_fsk object
1 parent 2408ac8 commit 0f0c234

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,12 @@
7474
board.SPI0_MISO,
7575
)
7676

77+
use_fsk = Flag(index=register.FLAG, bit_index=7)
78+
7779
radio = RFM9xManager(
7880
logger,
7981
config.radio,
80-
Flag(index=register.FLAG, bit_index=7),
82+
use_fsk,
8183
spi0,
8284
initialize_pin(logger, board.SPI0_CS0, digitalio.Direction.OUTPUT, True),
8385
initialize_pin(logger, board.RF1_RST, digitalio.Direction.OUTPUT, True),

0 commit comments

Comments
 (0)