Skip to content

Commit

Permalink
format source code (no functional changes)
Browse files Browse the repository at this point in the history
  • Loading branch information
barry-ha committed Feb 12, 2024
1 parent 857cebd commit 3264ce3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion model_adc.h
Expand Up @@ -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
}

Expand Down
14 changes: 7 additions & 7 deletions model_baro.h
Expand Up @@ -64,15 +64,15 @@
*/

#if defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
#include <Wire.h>
#include <Adafruit_BMP280.h> // Precision barometric and temperature sensor
#include <Adafruit_Sensor.h>
#include <Wire.h>
#include <Adafruit_BMP280.h> // Precision barometric and temperature sensor
#include <Adafruit_Sensor.h>
#else
#include <Adafruit_BMP3XX.h> // Precision barometric and temperature sensor
#include <Adafruit_BMP3XX.h> // 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
Expand Down
5 changes: 3 additions & 2 deletions model_gps.h
Expand Up @@ -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 -----
Expand Down
4 changes: 2 additions & 2 deletions morse_dac.h
Expand Up @@ -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

Expand Down Expand Up @@ -108,4 +108,4 @@ class DACMorseSender {
private:
void send(char c);
}; // end class DACMorseSender
#endif // ARDUINO_ADAFRUIT_FEATHER_RP2040
#endif // ARDUINO_ADAFRUIT_FEATHER_RP2040

0 comments on commit 3264ce3

Please sign in to comment.