You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there is an error in the code in the "sbitx.c" file, in the "sdr_request" function, at approximately line 1358.
This piece of code:
else if (!strcmp(cmd, "tx")){
if (!strcmp(value, "on"))
tr_switch_v2(1);
else
tr_switch_v2(0);
strcpy(response, "ok");
causes that after modifying the transmission activation sequence with the sBitx DE hardware, "tr_switch_v2" is always executed and not "tr_switch_DE". This causes the sBitx DE device to not transmit after the modification.
The correct code should be:
else if (!strcmp(cmd, "tx")){
if (!strcmp(value, "on"))
tr_switch(1);
// tr_switch_v2(1);
else
tr_switch(0);
// tr_switch_v2(0);
strcpy(response, ok");-
The text was updated successfully, but these errors were encountered:
There is this code in sbitx.c that decides (based on what hardware has been detected and setting sbitx_version) whether to call tr_switch_de or tr_switch_v2.
It seems that with this code in place, no other code should call tr_switch_de or tr_switch_v2 . They should just call tr_switch and know that it will go down the right path. The code might have been scrubbed to replace all calls to tr_switch_de or tr_switch_v2 with a call to the new tr_switch.
The developers might have overlooked the code you are pointing at. Only people with DE hardware will be able to see the problem. If this analysis is right, then the change to the code at line #1398 is a fix
else if (!strcmp(cmd, "tx")){
if (!strcmp(value, "on"))
tr_switch(1);
else
tr_switch(0);
strcpy(response, "ok");
}
I think there is an error in the code in the "sbitx.c" file, in the "sdr_request" function, at approximately line 1358.
This piece of code:
else if (!strcmp(cmd, "tx")){
if (!strcmp(value, "on"))
tr_switch_v2(1);
else
tr_switch_v2(0);
strcpy(response, "ok");
causes that after modifying the transmission activation sequence with the sBitx DE hardware, "tr_switch_v2" is always executed and not "tr_switch_DE". This causes the sBitx DE device to not transmit after the modification.
The correct code should be:
else if (!strcmp(cmd, "tx")){
if (!strcmp(value, "on"))
tr_switch(1);
// tr_switch_v2(1);
else
tr_switch(0);
// tr_switch_v2(0);
strcpy(response, ok");-
The text was updated successfully, but these errors were encountered: