It shouldn't matter (assuming the existing code works). ORing is the same as adding if the relevant bits start at zero anyway. I was replicating the existing code a "bit"
.
PHP Code:
void ReadTemperature(void) {...
ADMUX &= (128+64+32+16); // = 11110000. So, this sets MUX to 0000, and leaves the top 4 bits unchanged.
ADMUX++; // This sets MUX to 0001, setting the A/D converter input to PIN 24, the temperature monitor.
...
void ReadThrottle(void) {...
ADMUX &= (128+64+32+16);
...
void ReadCurrent(void) {...
ADMUX &= (128+64+32+16); // = 11110000. So, this sets MUX to 0000, and leaves the top 4 bits unchanged.
ADMUX+=2; // This sets MUX to 0002, setting the A/D converter input to PIN 25, the current monitor
...