mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
clear old sensors when testing standalone
This commit is contained in:
@@ -619,6 +619,8 @@ bool TemperatureSensor::Sensor::apply_customization() {
|
|||||||
// hard coded tests
|
// hard coded tests
|
||||||
#if defined(EMSESP_TEST)
|
#if defined(EMSESP_TEST)
|
||||||
void TemperatureSensor::load_test_data() {
|
void TemperatureSensor::load_test_data() {
|
||||||
|
sensors_.clear(); // delete all existing sensors
|
||||||
|
|
||||||
// add 2 temperature sensors
|
// add 2 temperature sensors
|
||||||
// Sensor ID: 01_0203_0405_0607
|
// Sensor ID: 01_0203_0405_0607
|
||||||
uint8_t addr[ADDR_LEN] = {1, 2, 3, 4, 5, 6, 7, 8};
|
uint8_t addr[ADDR_LEN] = {1, 2, 3, 4, 5, 6, 7, 8};
|
||||||
|
|||||||
Reference in New Issue
Block a user