Update main.c only increment reset_count if rebooted

release-1
Alan Johnston 1 year ago committed by GitHub
parent 78bb416387
commit 10cefee939
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -50,8 +50,8 @@ int main(int argc, char * argv[]) {
fprintf(stderr, "Transmit on %s MHz Receive on %s MHz\n", tx, rx);
// program_radio(); // do in rpitx instead
reset_count = (reset_count + 1) % 0xffff;
if (uptime_sec < 30.0)
reset_count = (reset_count + 1) % 0xffff; // only increment uptime if just rebooted
if ((fabs(lat_file) > 0) && (fabs(lat_file) < 90.0) && (fabs(long_file) > 0) && (fabs(long_file) < 180.0)) {
fprintf(stderr, "Valid latitude and longitude in config file\n");

Loading…
Cancel
Save

Powered by TurnKey Linux.