Skip to content

Commit

Permalink
Added debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Jul 1, 2024
1 parent 077f8e8 commit 9fbfba4
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ void dispNetwork()
u8g2->print("MAC:"); u8g2->print(ETH.macAddress());
u8g2->sendBuffer();
} else {
Serial.println("-------------B5-----------------------");
Serial.print("IP:"); Serial.println(ETH.localIP().toString());
Serial.print("MAC:"); Serial.println(ETH.macAddress());
delay(1000);
Expand Down Expand Up @@ -280,7 +281,7 @@ void dispGPS()
printInt(gps.sentencesWithFix(), true, 10);
printInt(gps.failedChecksum(), true, 9);
Serial.println();

delay(1000);
}
}

Expand Down Expand Up @@ -332,6 +333,10 @@ void dispRadioTx()
u8g2->setCursor( U8G2_HOR_ALIGN_RIGHT(freq.c_str()) - 14, 45 );
u8g2->print(freq);
u8g2->sendBuffer();
} else {
Serial.println("-------------B2-----------------------");
Serial.println("Radio Tx ...");
Serial.print("FREQ:"); Serial.print(current_freq); Serial.println("MHz");
}

}
Expand Down Expand Up @@ -378,6 +383,11 @@ void drawRadioRx(String payload, String snr, String rssi)
u8g2->setCursor( U8G2_HOR_ALIGN_RIGHT(String(current_freq).c_str()) - 21, 58 );
u8g2->print(String(current_freq));
u8g2->sendBuffer();
} else {

Serial.println("-------------B3-----------------------");
Serial.println("Radio Rx ...");
Serial.print("FREQ:"); Serial.print(current_freq); Serial.println("MHz");
}
}

Expand Down Expand Up @@ -473,6 +483,9 @@ void dispSensor()

u8g2->sendBuffer();
} else {

Serial.println("-------------B4-----------------------");

Serial.print("Temperature = ");
Serial.print(bme.readTemperature());
Serial.println(" *C");
Expand All @@ -491,6 +504,8 @@ void dispSensor()
Serial.println(" %");

Serial.println();

delay(500);
}
}

Expand Down

0 comments on commit 9fbfba4

Please sign in to comment.