small fixes
This commit is contained in:
parent
b1a742d777
commit
efeefc27b9
@ -64,14 +64,14 @@ void loop() {
|
||||
if (len >= 2) {
|
||||
rpm = buf[0] | (buf[1] << 8);
|
||||
v = rpm * 0.017;
|
||||
};
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 0x209 : {
|
||||
if (len >= 2) {
|
||||
ubat = buf[0] | (buf[1] << 8);
|
||||
ubatr = ubat / 16;
|
||||
};
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -113,10 +113,10 @@ void loop() {
|
||||
n = n + 1;
|
||||
lora.println(buffer);
|
||||
}
|
||||
if (current_time - previous_time_c >= timing) {
|
||||
if (current_time - previous_time_c >= timing_c) {
|
||||
previous_time_c = current_time;
|
||||
|
||||
current = (analogRead(A0) * 3);
|
||||
current = (analogRead(A0) * 4.8829);
|
||||
if (current > c_max) {
|
||||
c_max = current;
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user