1
0
Fork 0
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:
Niklas Eiling 2024-10-27 10:40:34 +01:00 committed by Niklas Eiling
parent 3300e7b2cd
commit afcfe08576

View file

@ -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(); }