Skip to content

Commit e0039b4

Browse files
committed
some more logging
1 parent edae555 commit e0039b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

TempBug/Device.nut

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ function getTemp() {
3131

3232
server.log("b_therm "+ b_therm);
3333
server.log("t0_therm "+ t0_therm);
34+
server.log("val "+ val);
3435
// scale the ADC reading to a voltage by dividing by the full-scale value and multiplying by the supply voltage
3536
local v_therm = calcBatt[0] * val / 65535.0;
3637
server.log("v_therm "+ v_therm);
@@ -54,7 +55,7 @@ server.log("t0_therm "+ t0_therm);
5455
//agent.send("Batt", imp.Batt());
5556
agent.send("Batt", calcBatt[0]);
5657

57-
imp.onidle(function() { server.sleepfor(300); }); // 15 minutes
58+
imp.onidle(function() { server.sleepfor(300); }); // 5 minutes
5859

5960
}
6061

0 commit comments

Comments
 (0)