MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / getChannel

Method getChannel

lib/SensorPlugin/src/SensorPlugin.cpp:269–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269ISensorChannel* SensorPlugin::getChannel(uint8_t sensorIdx, uint8_t channelIdx)
270{
271 ISensor* sensor = SensorDataProvider::getInstance().getSensor(sensorIdx);
272 ISensorChannel* channel = nullptr;
273
274 if ((nullptr != sensor) &&
275 (true == sensor->isAvailable()))
276 {
277 channel = sensor->getChannel(channelIdx);
278 }
279
280 return channel;
281}
282
283/******************************************************************************
284 * External Functions

Callers

nothing calls this directly

Calls 2

getSensorMethod · 0.45
isAvailableMethod · 0.45

Tested by

no test coverage detected