Skip to content

Commit e906752

Browse files
committed
Fixed warning about missing return statement for Print::print and Print::println methods.
1 parent 72a988c commit e906752

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pic32/cores/pic32/Print.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ size_t Print::print(const String &s)
4545
}
4646

4747
size_t Print::print(const __FlashStringHelper *s) {
48-
print((const char *)s);
48+
return print((const char *)s);
4949
}
5050

5151
size_t Print::print(const char str[])
@@ -120,7 +120,7 @@ size_t Print::println(const String &s)
120120
}
121121

122122
size_t Print::println(const __FlashStringHelper *s) {
123-
println((const char *)s);
123+
return println((const char *)s);
124124
}
125125

126126
size_t Print::println(const char c[])

0 commit comments

Comments
 (0)