mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-16 15:52:34 +00:00
16 lines
352 B
C++
16 lines
352 B
C++
|
|
#include "ScanI2CConsumer.h"
|
||
|
|
#include <forward_list>
|
||
|
|
|
||
|
|
static std::forward_list<ScanI2CConsumer *> ScanI2CConsumers;
|
||
|
|
|
||
|
|
ScanI2CConsumer::ScanI2CConsumer()
|
||
|
|
{
|
||
|
|
ScanI2CConsumers.push_front(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
void ScanI2CCompleted(ScanI2C *i2cScanner)
|
||
|
|
{
|
||
|
|
for (ScanI2CConsumer *consumer : ScanI2CConsumers) {
|
||
|
|
consumer->i2cScanFinished(i2cScanner);
|
||
|
|
}
|
||
|
|
}
|