Skip to content

Commit a842489

Browse files
jgfosterJames Foster
andauthored
When I went back to look at the code I saw what was missing when I moved the Statistic variable from the .cpp to the .h file. (#469)
Co-authored-by: James Foster <git@jgfoster.net>
1 parent 36980b3 commit a842489

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
const String gitVersion = 'v24.4.1-17-gda4+';
1+
const String gitVersion = 'v24.4.1-8-g3698+';

src/Version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#define VERSION "v24.4.1-17-gda4+"
1+
#define VERSION "v24.4.1-8-g3698+"

src/wrappers/ThermalProbe_TC.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
11
#include "wrappers/ThermalProbe_TC.h"
22

3-
#if defined(ARDUINO_CI_COMPILATION_MOCKS)
4-
#define _GLIBCXX_TYPE_TRAITS 1
5-
#define _GLIBCXX_CMATH 1
6-
#if __APPLE__
7-
#define _GLIBCXX_NUMERIC_LIMITS 1
8-
#endif
9-
#endif
10-
11-
#include "model/Statistic.h"
123
#include "model/TC_util.h"
134
#include "wrappers/DateTime_TC.h"
145
#include "wrappers/EEPROM_TC.h"
156
#include "wrappers/Serial_TC.h"
167

17-
Statistic uncorrectedThermalSample;
18-
198
// class instance variables
209
/**
2110
* static variable for singleton

src/wrappers/ThermalProbe_TC.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,16 @@
8080
#pragma once
8181
#include <Arduino.h>
8282

83+
#if defined(ARDUINO_CI_COMPILATION_MOCKS)
84+
#define _GLIBCXX_TYPE_TRAITS 1
85+
#define _GLIBCXX_CMATH 1
86+
#if __APPLE__
87+
#define _GLIBCXX_NUMERIC_LIMITS 1
88+
#endif
89+
#endif
90+
91+
#include "model/Statistic.h"
92+
8393
#if defined(ARDUINO_CI_COMPILATION_MOCKS)
8494
#ifndef ARDUINO
8595
#define ARDUINO 100
@@ -135,6 +145,7 @@ class ThermalProbe_TC {
135145
uint16_t historyIndex = 0;
136146
float correction = 0.0;
137147
uint32_t lastTime = 0;
148+
Statistic uncorrectedThermalSample;
138149

139150
// Methods
140151
ThermalProbe_TC();

0 commit comments

Comments
 (0)