JunMo Hong / EV-COG-AD3029LZ

Fork of stm-spirit1-rf-driver by ST

Revision:
33:c226804be492
Parent:
31:a4d8072139f2
--- 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