From aee410fd198085d79ab845c3919679522dc1392b Mon Sep 17 00:00:00 2001 From: phdlee Date: Mon, 6 Aug 2018 11:58:41 +0900 Subject: [PATCH] added delay time at startup --- i2cmeter1/i2cmeter1.ino | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/i2cmeter1/i2cmeter1.ino b/i2cmeter1/i2cmeter1.ino index 37959ac..872199b 100644 --- a/i2cmeter1/i2cmeter1.ino +++ b/i2cmeter1/i2cmeter1.ino @@ -790,11 +790,27 @@ extern double coeff; int SWRAdcValue = 0; +//for boot Delay, a alot of data transfer +//Delay 2.5 Sec +byte isBooted = 0; + void loop() { char isProcess = 0; //0 : Init, 1 : Complete ADC Sampling, 2 : Complete FFT isProcess = 0; + ForwardData(); + if (isBooted < 100) + { + //Delay 20msec + for (int i = 0; i < 20; i++) + { + ForwardData(); + delay(1); + } + isBooted++; + return; + } //=========================================== //TRANSCEIVER STATUS : RX