array of channels and config stuff

This commit is contained in:
Wolfgang Hottgenroth
2014-11-17 19:45:38 +01:00
parent f4cadb46a2
commit 4ea27a7169
7 changed files with 68 additions and 89 deletions

View File

@ -44,14 +44,10 @@ void Config::setMagic() {
}
void Config::initialize() {
bool res = false;
if (! isInitialized()) {
setFloat(ADC1START, 0.0);
setFloat(ADC1START + 4, 1.0);
setFloat(ADC2START, 0.0);
setFloat(ADC2START + 4, 1.0);
setFloat(THERMO1START, 1.0);
setFloat(THERMO2START, 1.0);
res = true;
setMagic();
}
return res;
}