Skip to content
Snippets Groups Projects
Commit 1d94b22c authored by Ettore Pane's avatar Ettore Pane Committed by Niccolò Betto
Browse files

[ADS131M08] Return proper initialization status

parent 6c188be2
Branches
Tags
1 merge request!331[ADS131M08] Return proper initialization status
Pipeline #10764 passed
...@@ -42,10 +42,9 @@ ADS131M08::ADS131M08(SPIBusInterface& bus, miosix::GpioPin cs, ...@@ -42,10 +42,9 @@ ADS131M08::ADS131M08(SPIBusInterface& bus, miosix::GpioPin cs,
bool ADS131M08::init() bool ADS131M08::init()
{ {
reset(); bool resetSuccess = reset();
applyConfig(config); applyConfig(config);
return resetSuccess;
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