Skip to content

Commit 0c12792

Browse files
authored
[wiring_analog] Fix warning (arduino#664)
Update wiring_analog.cpp
2 parents 5f61c3f + ae022a4 commit 0c12792

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/arduino/wiring_analog.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void analogWrite(pin_size_t pin, int val)
6161
return;
6262
}
6363
#ifdef DAC
64-
for (int i=0; i<NUM_ANALOG_OUTPUTS; i++) {
64+
for (unsigned int i=0; i<NUM_ANALOG_OUTPUTS; i++) {
6565
if (digitalPinToPinName(pin) == g_AAnalogOutPinDescription[i].name) {
6666
analogWriteDAC(digitalPinToPinName(pin), val, i);
6767
return;
@@ -142,4 +142,4 @@ void analogReadResolution(int bits)
142142
int getAnalogReadResolution()
143143
{
144144
return read_resolution;
145-
}
145+
}

0 commit comments

Comments
 (0)