Navigation Menu

Skip to content

Commit

Permalink
added default parameters to ser.str functions
Browse files Browse the repository at this point in the history
  • Loading branch information
totalspectrum committed May 31, 2018
1 parent 6ec1f58 commit a4d18c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/PrintfSerial.spin
Expand Up @@ -39,7 +39,7 @@ PUB tx(c) | val, nextcnt
OUT[txpin] := val
val >>= 1

PUB str(s) | c
PUB str(s = string("")) | c
REPEAT WHILE ((c := byte[s++]) <> 0)
tx(c)

Expand Down
2 changes: 1 addition & 1 deletion lib/SimpleSerial.spin
Expand Up @@ -37,7 +37,7 @@ PUB tx(c) | val, nextcnt
OUT[txpin] := val
val >>= 1

PUB str(s) | c
PUB str(s = string("")) | c
REPEAT WHILE ((c := byte[s++]) <> 0)
tx(c)

Expand Down

0 comments on commit a4d18c1

Please sign in to comment.