summaryrefslogtreecommitdiffstats
path: root/martin/door/src/cc1101.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'martin/door/src/cc1101.cpp')
-rw-r--r--martin/door/src/cc1101.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/martin/door/src/cc1101.cpp b/martin/door/src/cc1101.cpp
index 86129db..0f76d38 100644
--- a/martin/door/src/cc1101.cpp
+++ b/martin/door/src/cc1101.cpp
@@ -317,7 +317,7 @@ bool CC1101::setISM(CC1101::ISM_FREQ ism_freq)
317 return false; 317 return false;
318 } 318 }
319 319
320 spi_write_burst(PATABLE_BURST, patable, 8); 320 setPatable(patable);
321 321
322 // stores the new freq setting for defined ISM band 322 // stores the new freq setting for defined ISM band
323 spi_write_register(FREQ2, freq2); 323 spi_write_register(FREQ2, freq2);
@@ -327,6 +327,11 @@ bool CC1101::setISM(CC1101::ISM_FREQ ism_freq)
327 return true; 327 return true;
328} 328}
329 329
330void CC1101::setPatable(const uint8_t patable[8])
331{
332 spi_write_burst(PATABLE_BURST, patable, 8);
333}
334
330bool CC1101::register_check() 335bool CC1101::register_check()
331{ 336{
332 return (spi_read_register(PKTCTRL0) == cc1101_init[PKTCTRL0] 337 return (spi_read_register(PKTCTRL0) == cc1101_init[PKTCTRL0]