small fixes
This commit is contained in:
4
Config.h
4
Config.h
@ -21,8 +21,8 @@ namespace Config {
|
||||
const int MAGIC = 0;
|
||||
const int ADC1START = 4;
|
||||
const int ADC2START = 12;
|
||||
const int THERMO1ALPHA = 20;
|
||||
const int THERMO2ALPHA = 24;
|
||||
const int THERMO1START = 20;
|
||||
const int THERMO2START = 24;
|
||||
|
||||
void initialize();
|
||||
bool isInitialized();
|
||||
|
@ -102,8 +102,8 @@ void loop() {
|
||||
modbusHoldingRegisters.adc1U.in = ads1210_1.u;
|
||||
modbusHoldingRegisters.adc1R.in = ads1210_1.r;
|
||||
thermometer1.exec(ads1210_1.r);
|
||||
modbusHoldingRegisters.temperature1Raw = thermometer1.temperatureRaw;
|
||||
modbusHoldingRegisters.temperature1 = thermometer1.temperatur;
|
||||
modbusHoldingRegisters.temperature1Raw.in = thermometer1.temperatureRaw;
|
||||
modbusHoldingRegisters.temperature1.in = thermometer1.temperature;
|
||||
|
||||
|
||||
ads1210_2.exec();
|
||||
@ -111,8 +111,8 @@ void loop() {
|
||||
modbusHoldingRegisters.adc2U.in = ads1210_2.u;
|
||||
modbusHoldingRegisters.adc2R.in = ads1210_2.r;
|
||||
thermometer2.exec(ads1210_2.r);
|
||||
modbusHoldingRegisters.temperature2Raw = thermometer2.temperatureRaw;
|
||||
modbusHoldingRegisters.temperature2 = thermometer2.temperatur;
|
||||
modbusHoldingRegisters.temperature2Raw.in = thermometer2.temperatureRaw;
|
||||
modbusHoldingRegisters.temperature2.in = thermometer2.temperature;
|
||||
|
||||
if (secondTick.check() == 1) {
|
||||
led.toggle();
|
||||
|
Reference in New Issue
Block a user