samples: lorawan: rename shadow variables

Rename shadow variables found by -Wshadow.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2023-08-09 15:01:00 -07:00 committed by Carles Cufí
parent 8f756af1e1
commit b2f2f85ebd

View file

@ -29,11 +29,11 @@ char data[] = {'h', 'e', 'l', 'l', 'o', 'w', 'o', 'r', 'l', 'd'};
static void dl_callback(uint8_t port, bool data_pending,
int16_t rssi, int8_t snr,
uint8_t len, const uint8_t *data)
uint8_t len, const uint8_t *hex_data)
{
LOG_INF("Port %d, Pending %d, RSSI %ddB, SNR %ddBm", port, data_pending, rssi, snr);
if (data) {
LOG_HEXDUMP_INF(data, len, "Payload: ");
if (hex_data) {
LOG_HEXDUMP_INF(hex_data, len, "Payload: ");
}
}