Skip to content

Commit 889a519

Browse files
New sensor module (save point commit)
- Newly written and tested DS18B20 controller with logical sensor objects. - Mocked OneWire object (however, requires patching the original OneWire library class for dynamic dispatching) - Not integrated into boiler controller yet.
1 parent 601ca4e commit 889a519

File tree

7 files changed

+422
-434
lines changed

7 files changed

+422
-434
lines changed

config/config.ino

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#line 2 "config.ino"
2-
#include "ArduinoUnit.h"
1+
#include <ArduinoUnit.h>
32
#include "Configuration.h"
43

54
//#define DEBUG_UT_CONFIG
@@ -45,7 +44,7 @@ class TestConfigParams : public AbstractConfigParams {
4544
};
4645

4746

48-
test(config) {
47+
test(configuration) {
4948
TestConfigParams config = TestConfigParams();
5049
assertEqual(config.memSize(), sizeof(TestConfigParams));
5150
assertEqual(config.eepromSize(), sizeof(LayoutVersion) + TEST_DATA_LENGTH);

log/log.ino

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#line 2 "log.ino"
21
#include <ArduinoUnit.h>
32

43
#define UNIT_TEST
@@ -64,7 +63,7 @@ Timestamp TestLog::logValues(int16_t value) {
6463
}
6564

6665

67-
test(log_timestamp) {
66+
test(a_log_timestamp) {
6867
// ensure this test is not run within the first second of Arduino board time:
6968
delay(1000);
7069
uint32_t ms = millis();
@@ -103,7 +102,7 @@ test(log_timestamp) {
103102
}
104103

105104

106-
test(log_ring_buffer) {
105+
test(b_log_ring_buffer) {
107106
TestLog logging = TestLog();
108107

109108
logging.clear();
@@ -144,7 +143,7 @@ test(log_ring_buffer) {
144143
assertEqual(logging.logHeadIndex, 2);
145144
}
146145

147-
test(log_init) {
146+
test(c_log_init) {
148147
TestLog logging = TestLog();
149148

150149
// Test initialisation:
@@ -184,7 +183,7 @@ test(log_init) {
184183
assertEqual(logging.logHeadIndex, 2);
185184
}
186185

187-
test(log_reader_unnotified) {
186+
test(d_log_reader_unnotified) {
188187
TestLog logging = TestLog();
189188

190189
logging.clear(); // creates a first log entry
@@ -226,7 +225,7 @@ test(log_reader_unnotified) {
226225
assertEqual(lvd3.value, 3200);
227226
}
228227

229-
test(log_reader_most_recent) {
228+
test(e_log_reader_most_recent) {
230229
TestLog logging = TestLog();
231230

232231
logging.clear(); // creates a first log entry

log/ut_Logging.ggg.h

Lines changed: 0 additions & 259 deletions
This file was deleted.

0 commit comments

Comments
 (0)