Update Payload_BME280_MPU6050_XS.ino fix printf

pull/295/head
Alan Johnston 2 years ago committed by GitHub
parent ad3c0ae1ff
commit 34ee4b3c7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -471,7 +471,13 @@ bool check_for_wifi() {
pinMode(29, INPUT); pinMode(29, INPUT);
const float conversion_factor = 3.3f / (1 << 12); const float conversion_factor = 3.3f / (1 << 12);
uint16_t result = analogRead(29); uint16_t result = analogRead(29);
/*
// Serial.printf("ADC3 value: 0x%03x, voltage: %f V\n", result, result * conversion_factor); // Serial.printf("ADC3 value: 0x%03x, voltage: %f V\n", result, result * conversion_factor);
Serial.print("ADC3 value and voltage: ");
Serial.print(result);
Serial.print(" ");
Serial.println(result * conversion_factor);
*/
if (result < 0x10) { if (result < 0x10) {
Serial.println("\nPico W detected!\n"); Serial.println("\nPico W detected!\n");
@ -501,7 +507,9 @@ void get_gps() {
} }
} }
if (newData) { if (newData) {
Serial.printf("GPS read new data in ms: %d\n", millis() - start); Serial.print("GPS read new data in ms: ");
Serial.println(millis() - start);
// float flon = 0.0, flat = 0.0, flalt = 0.0; // float flon = 0.0, flat = 0.0, flalt = 0.0;
// unsigned long age; // unsigned long age;
// starting = millis(); // starting = millis();

Loading…
Cancel
Save

Powered by TurnKey Linux.