mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fpga/ip/i2c: remove dead code and improve comment.
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
parent
2d8b3fccd5
commit
0d6946bae9
1 changed files with 6 additions and 2 deletions
|
@ -65,8 +65,12 @@ bool I2c::check() {
|
|||
if (!initDone) {
|
||||
throw RuntimeError("I2C not initialized");
|
||||
}
|
||||
//FIXME: There might not be a switch - then this will fail even though the I2C might be working
|
||||
return 1; //getSwitch().selfTest();
|
||||
// Note: While testing the I2C switch here would be great, there might not be a switch connected
|
||||
// Then a call to getSwitch().selfTest() will fail even though the I2C might be working.
|
||||
// The only reliable thing to do is to assume there is nothing connected to the I2C bus and
|
||||
// always return true.
|
||||
// In the future we might check the FMC EEPROM to determine whether the FMC is connected.
|
||||
return 1;
|
||||
}
|
||||
|
||||
bool I2c::stop() { return reset(); }
|
||||
|
|
Loading…
Add table
Reference in a new issue