1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-16 07:23:07 +01:00

better handling of defined/enabled spi sensors

This commit is contained in:
andreas
2024-03-03 16:48:11 +01:00
parent c7c5f6c9b9
commit b327d91976
3 changed files with 3 additions and 13 deletions

View File

@@ -108,9 +108,9 @@ class GWDMS22B : public SSISensor{
using SSISensor::SSISensor;
virtual bool preinit(GwApi * api){
GwLog *logger=api->getLogger();
LOG_DEBUG(GwLog::LOG,"DMS22B configured, prefix=%s, intv=%f",prefix.c_str(),fintv);
LOG_DEBUG(GwLog::LOG,"DMS22B configured, prefix=%s, intv=%f, active=%d",prefix.c_str(),fintv,(int)act);
api->addCapability(prefix,"true");
return true;
return act;
}
virtual void measure(GwApi * api,BusType *bus, int counterId){
GwLog *logger=api->getLogger();