preload inputs
This commit is contained in:
parent
3c04d435f1
commit
63107ce0f2
2 changed files with 3 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ AnalogCard analogCard = AnalogCard();
|
|||
float voltage = 220.0;
|
||||
|
||||
float adc2current(uint16_t adc_val) {
|
||||
return adc_val * 0.707;
|
||||
return adc_val * 1.0;
|
||||
}
|
||||
|
||||
#define CT_INTERVAL 5000
|
||||
|
|
@ -92,6 +92,7 @@ void setup()
|
|||
Serial.print("boot_state.txt=\"Core Initializing . . .\"");
|
||||
sendStopBytes();
|
||||
espmega.begin();
|
||||
espmega.inputs.loop();
|
||||
// if (clear_fram)
|
||||
// {
|
||||
// Serial.print("boot_state.txt=\"Factory Resetting . . .\"");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue