diff options
author | Christian Pointner <equinox@spreadspace.org> | 2015-03-03 02:54:31 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2015-03-03 02:54:31 +0100 |
commit | 62ba4c43dbc2a8b091fa91cca123b6c997c50148 (patch) | |
tree | daada002ec816e7747fc1df6e456f8a2ba12857b /lib/cc1101.c | |
parent | multi-byte register write access now uses burst mode as well (diff) |
const correctness... yeah!
Diffstat (limited to 'lib/cc1101.c')
-rw-r--r-- | lib/cc1101.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cc1101.c b/lib/cc1101.c index 99c732c..70234b6 100644 --- a/lib/cc1101.c +++ b/lib/cc1101.c @@ -141,7 +141,7 @@ static uint8_t cc1101_spi_read_register_burst(const uint8_t addr, uint8_t* data, } // this is an internal-internal function - never use this outside of internal functions -static uint8_t cc1101_spi_write_register_burst_raw(const uint8_t addr, uint8_t* data, const uint8_t l) +static uint8_t cc1101_spi_write_register_burst_raw(const uint8_t addr, const uint8_t* data, const uint8_t l) { drv.spi_cs_enable(); cc1101_spi_wait_rdy(); @@ -155,7 +155,7 @@ static uint8_t cc1101_spi_write_register_burst_raw(const uint8_t addr, uint8_t* return i; } -static uint8_t cc1101_spi_write_register_burst(const uint8_t addr, uint8_t* data, const uint8_t len) +static uint8_t cc1101_spi_write_register_burst(const uint8_t addr, const uint8_t* data, const uint8_t len) { if(addr <= CC1101_REG_RW_MAX) { uint8_t l = (CC1101_REG_RW_MAX - addr) + 1; |