I assume you can use extern's with these separate files.?? I suggest to use one.? As an example call the variable
cw_tx_now.? It will need to be defined as extern in one of the files and just declared in the other.
?
Here in modem_cw when leaving the idle state you can add:
?
? ? ? ? ? ? cw_current_symbol = CW_DOT_DELAY;
? ? ? ? }
? ? ? ? else if (symbol_now & CW_WORD_DELAY){
? ? ? ? ? ? keydown_count = 0;
? ? ? ? ? ? keyup_count = cw_period * 6;
? ? ? ? ? ? cw_current_symbol = CW_DOT_DELAY;
? ? ? ? }
? ? ? ? //else just continue in CW_IDLE
??????? if( keydown_count > 0 ) cw_tx_now = 1;
? ? ? ? break;
?
and over here in sbitx_gtk
?
? ? if (ticks % 20 == 0 || cw_tx_now ){
? ? ? modem_poll(mode_id(get_field("r1:mode")->value));
????? cw_tx_now = 0;
? ? }