From efeefc27b9e6b6c86bdf24eb7df84c667938ab01 Mon Sep 17 00:00:00 2001 From: smayzy Date: Mon, 23 Mar 2026 13:17:22 +0100 Subject: [PATCH] small fixes --- can/can.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/can/can.ino b/can/can.ino index 9771bb3..6c3594b 100644 --- a/can/can.ino +++ b/can/can.ino @@ -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; };