driver for sx1280

Dependents:   alarm_slave_extended_SX1280 alarm_master_extended_Vance_SX1280

Files at this revision

API Documentation at this revision

Comitter:
Wayne Roberts
Date:
Fri Jul 10 09:32:04 2020 -0700
Parent:
7:aa7047cdf47b
Commit message:
run on mbed-6

Changed in this revision

sx1280.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r aa7047cdf47b -r 7b0b2e3ca9d2 sx1280.cpp
--- a/sx1280.cpp	Fri Dec 14 10:35:13 2018 -0800
+++ b/sx1280.cpp	Fri Jul 10 09:32:04 2020 -0700
@@ -148,7 +148,11 @@
 {
     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();