Skip to content

Commit 129f1d0

Browse files
authored
Merge pull request #65 from adafruit/fix-warnings
Fix a couple of warnings
2 parents ae8f52b + 6837884 commit 129f1d0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Adafruit_MCPSRAM.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ void Adafruit_MCPSRAM::read(uint16_t addr, uint8_t *buf, uint16_t num,
229229
if (hwSPI) {
230230
buf[i] = _spi->transfer(0x00);
231231
} else {
232+
buf[i] = 0;
232233
for (uint8_t bit = 0x80; bit; bit >>= 1) {
233234
#ifdef HAVE_PORTREG
234235
*clkport &= ~clkpinmask;

src/panels/ThinkInk_420_Tricolor_Z21.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class ThinkInk_420_Tricolor_Z21 : public Adafruit_UC8276 {
1616
: Adafruit_UC8276(300, 400, DC, RST, CS, SRCS, BUSY, spi){};
1717

1818
void begin(thinkinkmode_t mode = THINKINK_TRICOLOR) {
19+
(void)mode;
1920
Adafruit_EPD::begin(true);
2021
setBlackBuffer(0, true);
2122
setColorBuffer(1, false);

0 commit comments

Comments
 (0)