mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Fixed bug when printing const char*
This commit is contained in:
parent
a4f21cea8c
commit
f0844a77e8
1 changed files with 1 additions and 1 deletions
2
SPP.cpp
2
SPP.cpp
|
@ -743,7 +743,7 @@ void SPP::println(const String &str) {
|
||||||
print(output);
|
print(output);
|
||||||
}
|
}
|
||||||
void SPP::println(const char* data) {
|
void SPP::println(const char* data) {
|
||||||
char output[strlen(data)+2];
|
char output[strlen(data)+3];
|
||||||
strcpy(output,data);
|
strcpy(output,data);
|
||||||
strcat(output,"\r\n");
|
strcat(output,"\r\n");
|
||||||
print(output);
|
print(output);
|
||||||
|
|
Loading…
Reference in a new issue