Complete sensor demo.
Dependencies: modem_ref_helper CRC X_NUCLEO_IKS01A1 DebouncedInterrupt
Diff: main.cpp
- Revision:
- 11:9683d014dece
- Parent:
- 10:c01db64b9e68
- Child:
- 12:7a56e0705c9d
--- a/main.cpp Tue Sep 04 11:33:56 2018 +0000 +++ b/main.cpp Thu Sep 20 14:53:07 2018 +0000 @@ -29,7 +29,7 @@ // Do not send a report if it's been less than MIN_REPORT_PERIOD since the last report if ((last_report_time/1000) < MIN_REPORT_PERIOD) { - PRINT("Report Skipped, next in %ds min\n", MIN_REPORT_PERIOD - (last_report_time/1000)); + PRINT("Report Skipped. (Locked for %ds)\n", MIN_REPORT_PERIOD - (last_report_time/1000)); return false; } @@ -127,7 +127,8 @@ .lqual = my_lqual, .ldown = my_ldown, .reset = my_reset, - .boot = my_boot + .boot = my_boot, + .busy = my_busy, }; // Callback for Users @@ -368,7 +369,7 @@ nb++; PRINT("%d: XCL:%02X ", nb, istat.addressee.xcl.byte); PRINT_DATA("UID:", "%02X", istat.addressee.id, 8, " "); - PRINT("snr:%d rxlev:%d lb:%d\n", istat.snr, istat.rxlev, istat.lb); + PRINT("SNR: %3ddB RXLEV: -%-3ddBm LB: %3ddB\n", istat.snr, istat.rxlev, istat.lb); // Reset variable memset(&istat, 0, sizeof(d7a_sp_res_t));