From 3264ce3c1502280d0a3a93b3b6e1b427c3801666 Mon Sep 17 00:00:00 2001 From: barry-ha Date: Mon, 12 Feb 2024 11:02:59 -0800 Subject: [PATCH] format source code (no functional changes) --- model_adc.h | 2 +- model_baro.h | 14 +++++++------- model_gps.h | 5 +++-- morse_dac.h | 4 ++-- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/model_adc.h b/model_adc.h index dfe0bc4..5a1f6d9 100644 --- a/model_adc.h +++ b/model_adc.h @@ -34,7 +34,7 @@ class BatteryVoltage { float coinVoltage = coinBattery * voltsPerSample; return coinVoltage; #else - return -1.0; // indicate no coin battery voltage sensor + return -1.0; // indicate no coin battery voltage sensor #endif } diff --git a/model_baro.h b/model_baro.h index 870eb21..07bcc29 100644 --- a/model_baro.h +++ b/model_baro.h @@ -64,15 +64,15 @@ */ #if defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) - #include - #include // Precision barometric and temperature sensor - #include +#include +#include // Precision barometric and temperature sensor +#include #else - #include // Precision barometric and temperature sensor +#include // Precision barometric and temperature sensor #endif -#include "constants.h" // Griduino constants, colors, typedefs -#include "logger.h" // conditional printing to Serial port -#include "date_helper.h" // date/time conversions +#include "constants.h" // Griduino constants, colors, typedefs +#include "logger.h" // conditional printing to Serial port +#include "date_helper.h" // date/time conversions // ========== extern =========================================== extern Logger logger; // Griduino.ino diff --git a/model_gps.h b/model_gps.h index 10d7bae..8897b5c 100644 --- a/model_gps.h +++ b/model_gps.h @@ -88,8 +88,9 @@ class Model { Serial.println("ERROR! Failed to save GPS Model object to SDRAM"); return 0; // return failure } - trail.saveGPSBreadcrumbTrail(); - return 1; // return success + logger.fencepost("Save model, save breadcrumbs too", __LINE__); // debug + trail.saveGPSBreadcrumbTrail(); // while saving gpsmodel, also write breadcrumbs + return 1; // return success } // ----- load from SDRAM ----- diff --git a/morse_dac.h b/morse_dac.h index cf2cf17..49a0667 100644 --- a/morse_dac.h +++ b/morse_dac.h @@ -40,7 +40,7 @@ class DACMorseSender { void send_dah() {} void send_dit_space() {} void send_letter_space() {} - void send_word_space(){} + void send_word_space() {} }; #else @@ -108,4 +108,4 @@ class DACMorseSender { private: void send(char c); }; // end class DACMorseSender -#endif // ARDUINO_ADAFRUIT_FEATHER_RP2040 \ No newline at end of file +#endif // ARDUINO_ADAFRUIT_FEATHER_RP2040 \ No newline at end of file