Update cubesatsim.ino

pull/153/head
alanbjohnston 4 years ago committed by GitHub
parent 477e4c2055
commit b0e5fc4669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -128,13 +128,13 @@ void loop() {
digitalWrite(MAIN_LED_BLUE, HIGH); digitalWrite(MAIN_LED_BLUE, HIGH);
} }
// send telemetry // send telemetry
/*
if (mode != new_mode) { if (mode != new_mode) {
mode = new_mode; // change modes if button pressed mode = new_mode; // change modes if button pressed
config_telem(); config_telem();
config_radio(); config_radio();
} }
*/
// Calculate loop time // Calculate loop time
Serial.print("\nLoop time: "); Serial.print("\nLoop time: ");
Serial.println(millis() - startSleep); Serial.println(millis() - startSleep);
@ -2321,7 +2321,7 @@ void process_pushbutton() {
Serial.println("PB: Switch to AFSK"); Serial.println("PB: Switch to AFSK");
release = TRUE; release = TRUE;
new_mode = AFSK; new_mode = AFSK;
setup(); // setup();
} }
if (release == FALSE) { if (release == FALSE) {
@ -2334,7 +2334,7 @@ void process_pushbutton() {
Serial.println("PB: Switch to FSK"); Serial.println("PB: Switch to FSK");
release = TRUE; release = TRUE;
new_mode = FSK; new_mode = FSK;
setup(); // setup();
} }
if (release == FALSE) { if (release == FALSE) {

Loading…
Cancel
Save

Powered by TurnKey Linux.