¿ªÔÆÌåÓý

Re: Resurrection of a developers edition


 

Mike,

I assume you have installed the SWR/Power sensor in your DE.? The code uses the valid read of that sensor to decide if it is a DE, V2, or later model.? The code is at line 1147 in sbitx.c:

void tr_switch(int tx_on){
if (sbitx_version == SBITX_DE)
tr_switch_de(tx_on);
else
tr_switch_v2(tx_on);
}

Add a line before the if statement:
? ? ?sbitx_version = SBITX_DE;

The code becomes:
void tr_switch(int tx_on){
? ? ? ? sbitx_version = SBITX_DE;
if (sbitx_version == SBITX_DE)
tr_switch_de(tx_on);
else
tr_switch_v2(tx_on);

Or you can replace all 4 lines with
?
void tr_switch(int tx_on){
/* if (sbitx_version == SBITX_DE)? ?Comments out 4 lines
tr_switch_de(tx_on);
else
tr_switch_v2(tx_on);
*/
? ? ? ?tr_switch_de(tx_on);? ?//This is the only line executed when the tr_swtich() is called
}

Since I have not installed the sensor, I have not made the modification.

I have asked that the model choice be moved to the hw_settings.ini file.? In my opinion, this would be a better choice as more changes become possible with possible hardware changes in future versions.

73
Evan
AC9TU

Join [email protected] to automatically receive all group messages.