Skip to content

Commit

Permalink
Using std::string instead of string literal
Browse files Browse the repository at this point in the history
  • Loading branch information
TekuConcept committed Mar 23, 2017
1 parent e74a904 commit e2badd0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ void Serial::acknowledge() {

std::string Serial::readString() {
#ifdef DEBUG
return "Dummy String\0";
std::string res("Dummy String");
return res;
#else
if(fd==0) return "";
std::stringstream ss;
Expand Down

0 comments on commit e2badd0

Please sign in to comment.