MCPcopy Create free account
hub / github.com/DanielOgorchock/ST_Anything / initDevices

Method initDevices

Arduino/libraries/ST_Anything/Everything.cpp:146–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 }
145
146 void Everything::initDevices()
147 {
148 if(debug)
149 {
150 Serial.println(F("Everything: initDevices started"));
151 Serial.print(F("Everything: Free RAM = "));
152 Serial.println(freeRam());
153 }
154
155 for(unsigned int index=0; index<m_nSensorCount; ++index)
156 {
157 m_Sensors[index]->init();
158 sendStrings();
159 }
160
161 for(unsigned int index=0; index<m_nExecutorCount; ++index)
162 {
163 m_Executors[index]->init();
164 sendStrings();
165 }
166
167 if(debug)
168 {
169 Serial.println(F("Everything: initDevices ended"));
170 Serial.print(F("Everything: Free RAM = "));
171 Serial.println(freeRam());
172 }
173
174 refLastMillis = millis(); //avoid immediately refreshing after initialization
175 }
176
177 void Everything::run()
178 {

Callers

nothing calls this directly

Calls 4

freeRamFunction · 0.85
printlnMethod · 0.80
printMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected