Skip to content

Commit 0b41a8e

Browse files
committed
Fix warnings
1 parent b2cad38 commit 0b41a8e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cores/arduino/Interrupts.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#ifdef digitalPinToInterruptObj
2222
static mbed::InterruptIn* PinNameToInterruptObj(PinName P) {
2323
// reverse search for pinName in g_APinDescription[P].name fields
24-
for (int i=0; i < PINS_COUNT; i++) {
24+
for (pin_size_t i=0; i < PINS_COUNT; i++) {
2525
if (g_APinDescription[i].name == P) {
2626
return g_APinDescription[i].irq;
2727
}

cores/arduino/wiring.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ unsigned long micros() {
3939

4040
void delay(unsigned long ms)
4141
{
42-
wait_ms(ms);
42+
thread_sleep_for(ms);
4343
}
4444

4545
void delayMicroseconds(unsigned int us)

cores/arduino/wiring_analog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static int read_resolution = 10;
2929
#ifdef digitalPinToPwmObj
3030
static mbed::PwmOut* PinNameToPwmObj(PinName P) {
3131
// reverse search for pinName in g_APinDescription[P].name fields
32-
for (int i=0; i < PINS_COUNT; i++) {
32+
for (pin_size_t i=0; i < PINS_COUNT; i++) {
3333
if (g_APinDescription[i].name == P) {
3434
return g_APinDescription[i].pwm;
3535
}

0 commit comments

Comments
 (0)