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)
This commit is contained in:
ole00 2024-02-16 19:26:17 +00:00
parent fab07e57fd
commit bd19c7c776
1 changed files with 3 additions and 3 deletions

View File

@ -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