Skip to content
Snippets Groups Projects
Commit a74e2fb6 authored by Alberto Nidasio's avatar Alberto Nidasio
Browse files

[ADS131] Removed reset from init function

This would cause a configuration reset when starting the sensormanager!
parent fcf403b2
No related branches found
No related tags found
No related merge requests found
...@@ -54,17 +54,7 @@ void ADS131M04::setOversamplingRatio(OversamplingRatio ratio) ...@@ -54,17 +54,7 @@ void ADS131M04::setOversamplingRatio(OversamplingRatio ratio)
REG_CLOCK_OSR); REG_CLOCK_OSR);
} }
bool ADS131M04::init() bool ADS131M04::init() { return true; }
{
if (!reset())
{
lastError = SensorErrors::INIT_FAIL;
LOG_ERR(logger, "Initialization failed");
return false;
}
return true;
}
bool ADS131M04::reset() bool ADS131M04::reset()
{ {
......
...@@ -54,17 +54,7 @@ void ADS131M08::setOversamplingRatio(OversamplingRatio ratio) ...@@ -54,17 +54,7 @@ void ADS131M08::setOversamplingRatio(OversamplingRatio ratio)
REG_CLOCK_OSR); REG_CLOCK_OSR);
} }
bool ADS131M08::init() bool ADS131M08::init() { return true; }
{
if (!reset())
{
lastError = SensorErrors::INIT_FAIL;
LOG_ERR(logger, "Initialization failed");
return false;
}
return true;
}
bool ADS131M08::reset() bool ADS131M08::reset()
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment