Skip to content

Commit 352be37

Browse files
fix the build
1 parent f60d43f commit 352be37

File tree

1 file changed

+1
-1
lines changed
  • examples/receive_lora_raspberrypi

1 file changed

+1
-1
lines changed

examples/receive_lora_raspberrypi/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void rx_callback(sx127x *device, uint8_t *data, uint16_t data_length) {
5656
fprintf(stdout, "received: %d %s rssi: %d snr: %f freq_error: %" PRId32 "\n", data_length, payload, rssi, snr, frequency_error);
5757
}
5858

59-
void cad_callback(sx127x *device, int cad_detected) {
59+
void cad_callback(void *device, int cad_detected) {
6060
if (cad_detected == 0) {
6161
fprintf(stdout, "cad not detected\n");
6262
LINUX_NO_CODE_ERROR_CHECK(sx127x_set_opmod(SX127x_MODE_CAD, SX127x_MODULATION_LORA, device));

0 commit comments

Comments
 (0)