From bd19c7c7767c71fb51f42b49e88246106d6aeb1a Mon Sep 17 00:00:00 2001 From: ole00 Date: Fri, 16 Feb 2024 19:26:17 +0000 Subject: [PATCH] sketch: small fixes to setVpp() function - ATF22V10C uses lower VPP when reading PES - PES reading VPP for ATF was raised from 10V to 10.5V - out-of-band VPP was set to actual 12V (previously 10V by mistake) --- afterburner.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/afterburner.ino b/afterburner.ino index 308386a..c97b617 100644 --- a/afterburner.ino +++ b/afterburner.ino @@ -836,8 +836,8 @@ static void setVPP(char on) { // when PES is read the VPP is not determined via PES if (on == READPES) { - if (gal == ATF16V8B || gal == ATF20V8B || gal == ATF22V10B || gal == ATF22V10B) { - v = VPP_10V0; + if (gal == ATF16V8B || gal == ATF20V8B || gal == ATF22V10B || gal == ATF22V10C) { + v = VPP_10V5; } else { v = VPP_11V5; } @@ -847,7 +847,7 @@ static void setVPP(char on) { vpp = 36; //9V } else if (vpp > 66) { - vpp = 40; //12V + vpp = 48; //12V } v = (vpp >> 1) - 18; // 18: 2 * 9V, resolution 0.5V (not 0.25V) hence 'vpp >> 1' #if 0