开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: sBITX and Ham Bands


 

Hello Pierre,

The sbitx program first tries to read hw_settings.ini.? That is the file used by the program.? If hw_settings.ini is not found, it goes to hw_settins_default.ini and prints a message to the starting process.? It is up to the user to either rename or better to copy the correct file to hw_settings.ini.

With a DE version and not adding the SWR/Power sensor, I copied my calibrated hw_settings.ini from my V2 folder.

Here is the code in the sbitx.c file:

static void read_hw_ini(){
hw_init_index = 0;
char directory[PATH_MAX];
char *path = getenv("HOME");
strcpy(directory, path);
strcat(directory, "/sbitx/data/hw_settings.ini");
? if (ini_parse(directory, hw_settings_handler, NULL)<0){
? ? printf("Unable to load ~/sbitx/data/hw_settings.ini\nLoading default_hw_settings.ini instead\n");
strcpy(directory, path);
strcat(directory, "/sbitx/data/default_hw_settings.ini");
? ini_parse(directory, hw_settings_handler, NULL);
? }
}

73
Evan
AC9TU

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