Skip to content

Commit b052948

Browse files
committed
fix warnings with const char* and file bool op
1 parent e158a33 commit b052948

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

examples/EPDTest/EPDTest.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void loop() {
103103
}
104104

105105

106-
void testdrawtext(char *text, uint16_t color) {
106+
void testdrawtext(const char *text, uint16_t color) {
107107
display.setCursor(0, 0);
108108
display.setTextColor(color);
109109
display.setTextWrap(true);

examples/GizmoTest/GizmoTest.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void loop() {
8484
}
8585

8686

87-
void testdrawtext(char *text, uint16_t color) {
87+
void testdrawtext(const char *text, uint16_t color) {
8888
display.setCursor(0, 0);
8989
display.setTextColor(color);
9090
display.setTextWrap(true);

examples/ThinkInk_gray4/ThinkInk_gray4.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void loop() {
9191
}
9292

9393

94-
void testdrawtext(char *text, uint16_t color) {
94+
void testdrawtext(const char *text, uint16_t color) {
9595
display.setCursor(0, 0);
9696
display.setTextColor(color);
9797
display.setTextWrap(true);

examples/ThinkInk_mono/ThinkInk_mono.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void loop() {
101101
}
102102

103103

104-
void testdrawtext(char *text, uint16_t color) {
104+
void testdrawtext(const char *text, uint16_t color) {
105105
display.setCursor(0, 0);
106106
display.setTextColor(color);
107107
display.setTextWrap(true);

examples/ThinkInk_tricolor/ThinkInk_tricolor.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void loop() {
9696
}
9797

9898

99-
void testdrawtext(char *text, uint16_t color) {
99+
void testdrawtext(const char *text, uint16_t color) {
100100
display.setCursor(0, 0);
101101
display.setTextColor(color);
102102
display.setTextWrap(true);

examples/acep_7ColorTest/acep_7ColorTest.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void loop() {
8181

8282
#define BUFFPIXEL 20
8383

84-
bool bmpDraw(char *filename, int16_t x, int16_t y) {
84+
bool bmpDraw(const char *filename, int16_t x, int16_t y) {
8585
File bmpFile;
8686
int bmpWidth, bmpHeight; // W+H in pixels
8787
uint8_t bmpDepth; // Bit depth (currently must be 24)
@@ -103,7 +103,7 @@ bool bmpDraw(char *filename, int16_t x, int16_t y) {
103103
Serial.println('\'');
104104

105105
// Open requested file on SD card
106-
if ((bmpFile = fatfs.open(filename, FILE_READ)) == NULL) {
106+
if ((bmpFile = fatfs.open(filename, FILE_READ)) == false) {
107107
Serial.print(F("File not found"));
108108
return false;
109109
}

examples/graphicstest/graphicstest.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void testlines(uint16_t color) {
158158
display.display();
159159
}
160160

161-
void testdrawtext(char *text, uint16_t color) {
161+
void testdrawtext(const char *text, uint16_t color) {
162162
display.clearBuffer();
163163
display.setCursor(5, 5);
164164
display.setTextColor(color);

0 commit comments

Comments
 (0)