Skip to content

Commit

Permalink
Fix String conversion for unsigned char on Teensy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Apr 4, 2015
1 parent 8545ba7 commit 13dd541
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion teensy/WString.cpp
Expand Up @@ -66,7 +66,9 @@ String::String(char c)
String::String(unsigned char c)
{
init();
*this = (char)c;
char buf[4];
utoa(c, buf, 10);
*this = buf;
}

String::String(const int value, unsigned char base)
Expand Down

0 comments on commit 13dd541

Please sign in to comment.