diff options
author | Bernhard Tittelbach <xro@realraum.at> | 2012-05-20 02:06:36 +0000 |
---|---|---|
committer | Bernhard Tittelbach <xro@realraum.at> | 2012-05-20 02:06:36 +0000 |
commit | 8e7e23305a90b3535792ed24ffbc89583f992369 (patch) | |
tree | 419a7403c2edde440b646653764dc7b8bc9787a9 /software/hhd70dongle/c1101lib.c | |
parent | found a 'datasheet' for hhd70, thus exchanged RE/TE (diff) |
fix write register bug
git-svn-id: https://svn.spreadspace.org/mur.sat@446 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/hhd70dongle/c1101lib.c')
-rw-r--r-- | software/hhd70dongle/c1101lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/software/hhd70dongle/c1101lib.c b/software/hhd70dongle/c1101lib.c index 1c60727..9030f66 100644 --- a/software/hhd70dongle/c1101lib.c +++ b/software/hhd70dongle/c1101lib.c @@ -99,7 +99,7 @@ int16_t c1101_spi_write_register(char address, char byte) { hhd70_spi_cs_enable(); hhd70_c1101_wait_chip_rdy(); - if (c1101_spi_write_byte_ok_get_status(address & 0x2F) < 0) + if (c1101_spi_write_byte_ok_get_status(address & 0x3F) < 0) return -1; _delay_ms(2); if (c1101_spi_write_byte_ok_get_status(byte) < 0) |