From 566d84d3e64d8feac07ab5626a6c05a6b76005ba Mon Sep 17 00:00:00 2001 From: wellenvogel Date: Mon, 29 Sep 2025 18:04:04 +0200 Subject: [PATCH] correctly handle ifdefs for SHT4X --- lib/iictask/SHT4X.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/iictask/SHT4X.cpp b/lib/iictask/SHT4X.cpp index 7dc9235..6d14473 100644 --- a/lib/iictask/SHT4X.cpp +++ b/lib/iictask/SHT4X.cpp @@ -1,4 +1,6 @@ -#include "SHT4X.h" +#include "GwSHTXX.h" +#ifdef _GWSHT4X + uint8_t crc8(const uint8_t *data, int len) { /* * @@ -126,3 +128,4 @@ void SHT4X::setHeater(sht4x_heater_t heat) { sht4x_heater_t SHT4X::getHeater(void) { return _heater; } +#endif \ No newline at end of file