diff options
author | Sylvain Miermont <smiermont@semtech.com> | 2013-10-22 18:23:52 +0200 |
---|---|---|
committer | Sylvain Miermont <smiermont@semtech.com> | 2013-10-24 09:29:51 +0200 |
commit | 4977430ef31fb52994fed42b9cb180930ed943d0 (patch) | |
tree | 27f4fadea5fa35f25933d59bcd7b99cca8c965c8 /libloragw/src/loragw_reg.c | |
parent | b922932d1c9869d82042b600db2382d8c15f63dc (diff) | |
download | lora_gateway-4977430ef31fb52994fed42b9cb180930ed943d0.tar.gz lora_gateway-4977430ef31fb52994fed42b9cb180930ed943d0.tar.bz2 lora_gateway-4977430ef31fb52994fed42b9cb180930ed943d0.zip |
Beta 8v1.b8
- API: lgw_receive now return info on RX frequency and RF path for each packet (no need to keep track of RF/IF settings)
- Unified some portion of the code with the 470 MHz variant of the HAL (use SX1255 radios instead of SX1257)
- Improved AGC and ARB firmwares
- Adding -Wall -Wextra for compilation, fixing all the new warnings for cleaner code
- Fixed bugs in handling of FSK datarate
- test_loragw_hal now dumps the content of all Lora registers after configuration in reg_dump.log
Diffstat (limited to 'libloragw/src/loragw_reg.c')
-rw-r--r-- | libloragw/src/loragw_reg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libloragw/src/loragw_reg.c b/libloragw/src/loragw_reg.c index fea9784..68bba55 100644 --- a/libloragw/src/loragw_reg.c +++ b/libloragw/src/loragw_reg.c @@ -479,7 +479,6 @@ int lgw_disconnect(void) { /* soft-reset function */ int lgw_soft_reset(void) { - int32_t read_value; /* check if SPI is initialised */ if ((lgw_spi_target == NULL) || (lgw_regpage < 0)) { DEBUG_MSG("ERROR: GATEWAY UNCONNECTED\n"); @@ -610,7 +609,7 @@ int lgw_reg_r(uint16_t register_id, int32_t *reg_value) { int spi_stat = LGW_SPI_SUCCESS; struct lgw_reg_s r; uint8_t bufu[4] = "\x00\x00\x00\x00"; - int8_t *bufs = bufu; + int8_t *bufs = (int8_t *)bufu; int i, size_byte; uint32_t u = 0; |