Skip to content

Commit

Permalink
doc: Fix commander TX example
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
franky47 committed Jul 4, 2019
1 parent d6da0f8 commit 12a168b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,9 @@ void setup()
void loop()
{
// Just pass it where to read from:
// Create commands and send them:
SayHello hello;
memset(hello.name, 0, 32);
memset(hello.name, 0, sizeof(SayHello::name));
memcpy(hello.name, "Commander", 9);
CommanderTX::send(hello, Serial1);
Expand Down

0 comments on commit 12a168b

Please sign in to comment.