mirror of
https://github.com/stevenhowes/MX5-Arduino.git
synced 2026-05-26 15:53:40 +01:00
Clean up of debug prints, and safer CAS handling
This commit is contained in:
@@ -56,7 +56,13 @@ void cas_process()
|
||||
else
|
||||
{
|
||||
// Clear it if we're in sync, but don't clear log flag
|
||||
cas_sync_fail = 0;
|
||||
if(cas_sync_initial == 1)
|
||||
{
|
||||
cas_sync_initial = 0;
|
||||
cas_sync_fail = 0;
|
||||
cas_sync_fail_log = 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Use this number because we KNOW it's right
|
||||
@@ -137,7 +143,3 @@ void cas_process()
|
||||
}
|
||||
cas_sgc_lastvalue = sgc;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user