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.
Dependencies: SX127x sx12xx_hal
Diff: main.cpp
- Revision:
- 10:e262a92550c6
- Parent:
- 9:28f69b9b6a4c
- Child:
- 11:b91befb0face
--- a/main.cpp Thu Nov 28 05:54:24 2019 +0000
+++ b/main.cpp Thu Nov 28 06:08:53 2019 +0000
@@ -161,20 +161,10 @@
static void manual_transmission(void)
{
- CriticalSectionLock::enable();
- sendCommandFlag = 1;
- CriticalSectionLock::disable();
+
+ queue.call(manual_transmission_queue_callback);
}
-static void interrupt_check_in(void)
-{
- if(sendCommandFlag)
- {
- queue.call(manual_transmission_queue_callback);
- CriticalSectionLock::enable();
- sendCommandFlag = 0;
- CriticalSectionLock::disable();
- }
-}
+
int main()
@@ -188,7 +178,6 @@
tr_debug("Program Entry");
thread.start(callback(&queue, &EventQueue::dispatch_forever));
- queue.call_every(100, interrupt_check_in);
UserButtonPB2.rise(&manual_transmission);
wait(0.05);