Skip to content

Commit

Permalink
fix code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
dernasherbrezon committed Aug 5, 2024
1 parent c28b459 commit 5a4701c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sx127x.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ int sx127x_shadow_spi_read_registers(int reg, shadow_spi_device_t *spi_device, s
return code;
}

uint8_t *pointer = ((uint8_t *) result) + (sizeof(uint32_t) - data_length);
const uint8_t *pointer = ((uint8_t *) result) + (sizeof(uint32_t) - data_length);
memcpy(spi_device->shadow_registers + reg, pointer, data_length);
memset(spi_device->shadow_registers_sync + reg, SHADOW_CACHED, data_length);
return code;
Expand Down

0 comments on commit 5a4701c

Please sign in to comment.