Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: alarm_slave iq_sx126x sx126x_simple_TX_shield_2020a sx126x_simple_RX_shield_2020a ... more
Revision 13:5703598a88fb, committed 2020-07-10
- Comitter:
- Wayne Roberts
- Date:
- Fri Jul 10 09:44:30 2020 -0700
- Parent:
- 12:7a3ec8bb8407
- Commit message:
- run on mbed-6
Changed in this revision
| sx126x.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/sx126x.cpp Mon May 04 17:48:12 2020 -0700
+++ b/sx126x.cpp Fri Jul 10 09:44:30 2020 -0700
@@ -61,7 +61,6 @@
printf("\r\n");
}
-extern RawSerial pc;
void SX126x::service()
{
IrqFlags_t irqFlags, clearIrqFlags;
@@ -376,7 +375,11 @@
DigitalInOut nrst(pin);
nrst.output();
nrst = 0;
- wait_us(100);
+#if (MBED_MAJOR_VERSION < 6)
+ ThisThread::sleep_for(1);
+#else
+ ThisThread::sleep_for(1ms);
+#endif
nrst = 1;
nrst.mode(PullUp);
nrst.input();