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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user