Commit Diff


commit - a51a5855d037ee47792db1d53898598083803c94
commit + 2ff3928268d584af84c0804a54b99e2392122d5f
blob - 91e96fcf3203aa69e52e49f8c43b380ac246cbe4
blob + 0ec4b321d04a33177632b97f6deb2ddb1ed101d2
--- Morse.cpp	
+++ Morse.cpp	
@@ -137,7 +137,7 @@ void handle_chars(void)
 void handle_units(uint8_t c)
 {
 	// set led on and space off
-	if (!next_index && !handle_unit && !unit_handled) {
+	if (!next_index && !handle_unit && !unit_handled && tx_gpio_send) {
 		if (c == 1) {
 			handle_unit_millis = W_SP * unit_t +
 			    (gpio_tx_current_millis - gpio_tx_start_millis);
@@ -159,7 +159,7 @@ void handle_units(uint8_t c)
 	}
 
 	// set led off, handle IC_SP, or handle C_SP
-	if (handle_unit && !unit_handled && !next_index &&
+	if (handle_unit && !unit_handled && !next_index && tx_gpio_send &&
 	    (millis() - gpio_tx_start_millis) >= handle_unit_millis) {
 		gpio_tx_start_millis = gpio_tx_current_millis;
 		digitalWrite(tx_pin, LOW);
@@ -176,7 +176,7 @@ void handle_units(uint8_t c)
 	}
 
 	// we're done, start next
-	if (unit_handled &&
+	if (unit_handled && tx_gpio_send &&
 	    (millis() - gpio_tx_start_millis) >= handle_unit_millis) {
 		gpio_tx_start_millis = gpio_tx_current_millis;
 		unit_handled = 0;