Revert "remember which devices were scanned on which bus and set them accordingly." - this is not working at all.

This commit is contained in:
Thomas Göttgens
2022-11-13 14:56:52 +01:00
parent 037d6c253b
commit 6a696af8f6
23 changed files with 117 additions and 191 deletions

View File

@@ -1,8 +1,6 @@
#include "cardKbI2cImpl.h"
#include "InputBroker.h"
#if HAS_WIRE
CardKbI2cImpl *cardKbI2cImpl;
CardKbI2cImpl::CardKbI2cImpl() :
@@ -12,7 +10,7 @@ CardKbI2cImpl::CardKbI2cImpl() :
void CardKbI2cImpl::init()
{
if (i2cScanMap[CARDKB_ADDR].addr != CARDKB_ADDR)
if (cardkb_found != CARDKB_ADDR)
{
// Input device is not detected.
return;
@@ -20,5 +18,3 @@ void CardKbI2cImpl::init()
inputBroker->registerSource(this);
}
#endif