mirror of
https://github.com/ole00/afterburner.git
synced 2024-11-26 03:49:18 +00:00
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:
parent
fab07e57fd
commit
bd19c7c776
@ -836,8 +836,8 @@ static void setVPP(char on) {
|
|||||||
|
|
||||||
// when PES is read the VPP is not determined via PES
|
// when PES is read the VPP is not determined via PES
|
||||||
if (on == READPES) {
|
if (on == READPES) {
|
||||||
if (gal == ATF16V8B || gal == ATF20V8B || gal == ATF22V10B || gal == ATF22V10B) {
|
if (gal == ATF16V8B || gal == ATF20V8B || gal == ATF22V10B || gal == ATF22V10C) {
|
||||||
v = VPP_10V0;
|
v = VPP_10V5;
|
||||||
} else {
|
} else {
|
||||||
v = VPP_11V5;
|
v = VPP_11V5;
|
||||||
}
|
}
|
||||||
@ -847,7 +847,7 @@ static void setVPP(char on) {
|
|||||||
vpp = 36; //9V
|
vpp = 36; //9V
|
||||||
} else
|
} else
|
||||||
if (vpp > 66) {
|
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'
|
v = (vpp >> 1) - 18; // 18: 2 * 9V, resolution 0.5V (not 0.25V) hence 'vpp >> 1'
|
||||||
#if 0
|
#if 0
|
||||||
|
Loading…
Reference in New Issue
Block a user