Skip to content

Commit ad57d05

Browse files
committed
mods to get compile to work on samd mkr1000
1 parent 34a6906 commit ad57d05

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/sfeTkArdI2C.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ over Inter-Integrated Circuit (I2C) in Arduino
2727

2828
#pragma once
2929

30+
#include <Arduino.h>
3031
#include <Wire.h>
3132

3233
// Include our platform I2C interface definition.

src/sfeTkArdSPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ int32_t sfeTkArdSPI::writeRegisterRegion(uint8_t devReg, const uint8_t *data, si
138138
digitalWrite(cs(), LOW);
139139
_spiPort->transfer(devReg);
140140

141-
for (int i = 0; i < length; i++)
141+
for (size_t i = 0; i < length; i++)
142142
_spiPort->transfer(*data++);
143143

144144
// End communication

0 commit comments

Comments
 (0)