Skip to content

Commit

Permalink
Renamed class members
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Apr 18, 2024
1 parent e50af1a commit 7a7b126
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/AppLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ void AppLayer::getPayloadStage1(uint8_t port, LoraEncoder &encoder)

#ifdef RAINDATA_EN
// Check if time is valid
if (*rtcLastClockSync > 0)
if (*_rtcLastClockSync > 0)
{
// Get local date and time
struct tm timeinfo;
time_t tnow = rtc->getLocalEpoch();
time_t tnow = _rtc->getLocalEpoch();
localtime_r(&tnow, &timeinfo);

// Find weather sensor and determine rain gauge overflow limit
Expand All @@ -212,10 +212,10 @@ void AppLayer::getPayloadStage1(uint8_t port, LoraEncoder &encoder)

#ifdef LIGHTNINGSENSOR_EN
// Check if time is valid
if (*rtcLastClockSync > 0)
if (*_rtcLastClockSync > 0)
{
// Get local date and time
time_t tnow = rtc->getLocalEpoch();
time_t tnow = _rtc->getLocalEpoch();

// Find lightning sensor
int ls = weatherSensor.findType(SENSOR_TYPE_LIGHTNING);
Expand Down
8 changes: 4 additions & 4 deletions src/AppLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
class AppLayer
{
private:
ESP32Time *rtc;
time_t *rtcLastClockSync;
ESP32Time *_rtc;
time_t *_rtcLastClockSync;

/// Preferences (stored in flash memory)
Preferences appPrefs;
Expand Down Expand Up @@ -132,8 +132,8 @@ class AppLayer
AppLayer(ESP32Time *rtc, time_t *clocksync)
#endif
{
rtc = rtc;
rtcLastClockSync = clocksync;
_rtc = rtc;
_rtcLastClockSync = clocksync;

#if defined(MITHERMOMETER_EN) || defined(THEENGSDECODER_EN)
knownBLEAddressesDef = KNOWN_BLE_ADDRESSES;
Expand Down

0 comments on commit 7a7b126

Please sign in to comment.