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

Method getSensor

lib/Common/src/SensorDataProviderImpl.cpp:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88ISensor* SensorDataProviderImpl::getSensor(uint8_t index)
89{
90 ISensor* sensor = nullptr;
91
92 if (m_cnt > index)
93 {
94 sensor = m_sensors[index];
95 }
96
97 return sensor;
98}
99
100/******************************************************************************
101 * Protected Methods

Callers 3

startMethod · 0.45
getChannelMethod · 0.45
startMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected