mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-25 09:42:35 +00:00
fix portduino
This commit is contained in:
parent
b6de79b21a
commit
037d6c253b
@ -221,5 +221,5 @@ void scanI2Cdevice(TwoWire myWire, uint8_t busnum)
|
||||
DEBUG_MSG("%i I2C devices found\n",nDevices);
|
||||
}
|
||||
#else
|
||||
void scanI2Cdevice(TwoWire myWire, uint8_t busnum) {}
|
||||
void scanI2Cdevice() {}
|
||||
#endif
|
||||
|
@ -1,6 +1,8 @@
|
||||
#include "cardKbI2cImpl.h"
|
||||
#include "InputBroker.h"
|
||||
|
||||
#if HAS_WIRE
|
||||
|
||||
CardKbI2cImpl *cardKbI2cImpl;
|
||||
|
||||
CardKbI2cImpl::CardKbI2cImpl() :
|
||||
@ -18,3 +20,5 @@ void CardKbI2cImpl::init()
|
||||
|
||||
inputBroker->registerSource(this);
|
||||
}
|
||||
|
||||
#endif
|
@ -3,6 +3,7 @@
|
||||
#include "main.h"
|
||||
#include <Wire.h>
|
||||
|
||||
#if HAS_WIRE
|
||||
|
||||
KbI2cBase::KbI2cBase(const char *name) : concurrency::OSThread(name)
|
||||
{
|
||||
@ -120,3 +121,5 @@ int32_t KbI2cBase::runOnce()
|
||||
}
|
||||
return 500;
|
||||
}
|
||||
|
||||
#endif
|
@ -247,8 +247,10 @@ void setup()
|
||||
powerStatus->observe(&power->newStatus);
|
||||
power->setup(); // Must be after status handler is installed, so that handler gets notified of the initial configuration
|
||||
|
||||
#if HAS_WIRE
|
||||
// We need to scan here to decide if we have a screen for nodeDB.init()
|
||||
scanI2Cdevice(Wire,0);
|
||||
#endif
|
||||
|
||||
#ifdef I2C_SDA1
|
||||
scanI2Cdevice(Wire1,1);
|
||||
|
Loading…
Reference in New Issue
Block a user