mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fpga: Fix I2c causing an error when Dino FMC is not connected. We loose the self check, but this is not really possible if there is no Dino FMC.
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
parent
580591ca86
commit
19dfac280b
1 changed files with 2 additions and 1 deletions
|
@ -65,7 +65,8 @@ bool I2c::check() {
|
|||
if (!initDone) {
|
||||
throw RuntimeError("I2C not initialized");
|
||||
}
|
||||
return getSwitch().selfTest();
|
||||
//FIXME: There might not be a switch - then this will fail even though the I2C might be working
|
||||
return 1; //getSwitch().selfTest();
|
||||
}
|
||||
|
||||
bool I2c::stop() { return reset(); }
|
||||
|
|
Loading…
Add table
Reference in a new issue