From NO3M:

Eliminated sendingOtherRadio variable.  Added activeTxRadio variable.
activeTxRadio is exclusively set within switchTransmit() function
(which is also called from switchRadios(true)), so should always
accurately reflect where transmit is focused.  Anytime transmit focus
should be switched independent of RX focused radio, switchTransmit(nr)
is called.

Utilized activeTxRadio to clean up several macros in expandMacros
(mainly toggle related) and much more simplified logic in CW speed
changes, QSY, et.al.