Prototype RF driver for STM Sub-1 GHz RF expansion board based on the SPSGRF-868 module for STM32 Nucleo.
Dependents: DISCO_IOT-wifi_client
Fork of stm-spirit1-rf-driver by
Revision 33:c226804be492, committed 2016-11-21
- Comitter:
- Wolfgang Betz
- Date:
- Mon Nov 21 13:26:17 2016 +0100
- Parent:
- 32:e5272bafeeea
- Child:
- 34:edda6a7238ec
- Commit message:
- Slightly better send timeout handling
Changed in this revision
| SimpleSpirit1.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed_driver_api.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SimpleSpirit1.cpp Mon Nov 21 10:04:43 2016 +0100
+++ b/SimpleSpirit1.cpp Mon Nov 21 13:26:17 2016 +0100
@@ -222,6 +222,8 @@
debug("\n\r%s (%d): state=%x, _spirit_tx_started=%d\n\r", __func__, __LINE__, SPIRIT1_STATUS()>>1, _spirit_tx_started);
#endif
+ _spirit_tx_started = false; // in case of state timeout
+
csma_ca_state(S_DISABLE); // disable CSMA/CA
cmd_strobe(SPIRIT1_STROBE_RX); // Return to RX state
--- a/mbed_driver_api.cpp Mon Nov 21 10:04:43 2016 +0100
+++ b/mbed_driver_api.cpp Mon Nov 21 13:26:17 2016 +0100
@@ -138,7 +138,7 @@
data_ptr[7], data_ptr[8], data_ptr[9], data_ptr[10]);
#endif
- /*Send the packet*/
+ /*Send the packet*/
rf_device->send(data_ptr, data_length);
/* Release Lock */
