syntax cleanup #changelog

This commit is contained in:
pyr0ball 2019-09-25 13:09:09 -07:00
parent 9e885f316e
commit 26d7a978d3
3 changed files with 4 additions and 6 deletions

View file

@ -60,9 +60,8 @@ update the voltMeterConstant variable in pP_config.h with the correct value*/
void readVin() { void readVin() {
VOld = Vin; VOld = Vin;
Vin = readVcc(), DEC; Vin = readVcc(), DEC;
senseLong = senseThrs * 1024L; followerLong = followerThrs * 1023L;
compLong = compThrs * 1024L; compLong = compThrs * 1023L;
senseInt = (long long) senseLong / Vin;
compInt = (long long) compLong / Vin; compInt = (long long) compLong / Vin;
senseInt = (int) senseInt; senseInt = (int) senseInt;
compInt = (int) compInt; compInt = (int) compInt;

View file

@ -55,6 +55,7 @@ void identifyMarkers() {
#endif #endif
} }
/*------------------------------------------------*/
void updateGainFactor() void updateGainFactor()
{ {
if (serialInt >= 0) if (serialInt >= 0)

View file

@ -10,9 +10,7 @@ int VLast = 0;
// Convert threshold values based on the input voltage // Convert threshold values based on the input voltage
long senseLong = senseThrs * 1024L; long followerLong = followerThrs * 1023L;
long compLong = compThrs * 1024L;
long senseInt;
long compInt; long compInt;
// Voltage Comparator Adjustment parameters // Voltage Comparator Adjustment parameters