|
|
|
|
@ -405,7 +405,7 @@ int main(int argc, char *argv[]) {
|
|
|
|
|
pinMode (onLed, OUTPUT);
|
|
|
|
|
digitalWrite (onLed, onLedOn);
|
|
|
|
|
#ifdef DEBUG_LOGGING
|
|
|
|
|
printf("Tx LED On\n");
|
|
|
|
|
printf("Power LED On\n");
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// if ((cycle == ON) && !ax5043) // don't cycle modes if using AX5043
|
|
|
|
|
@ -415,8 +415,7 @@ int main(int argc, char *argv[]) {
|
|
|
|
|
fprintf(config_file, "%s %d", call, reset_count);
|
|
|
|
|
fclose(config_file);
|
|
|
|
|
config_file = fopen("sim.cfg","r");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (vB4)
|
|
|
|
|
{
|
|
|
|
|
sensor[PLUS_X] = config_sensor("/dev/i2c-1", 0x40, 400);
|
|
|
|
|
@ -566,7 +565,8 @@ while (loop-- != 0)
|
|
|
|
|
digitalWrite (onLed, onLedOff);
|
|
|
|
|
|
|
|
|
|
popen("sudo shutdown -h now > /dev/null 2>&1", "r");
|
|
|
|
|
}
|
|
|
|
|
sleep(10);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (mode == FSK) {
|
|
|
|
|
bitRate = 200;
|
|
|
|
|
|