Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
changed VOCABx into yarp::os::createVocab
  • Loading branch information
pattacini committed Jun 27, 2018
1 parent 56014fc commit 974cd6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/iCubBreather/iCubBreatherModule.cpp
Expand Up @@ -119,7 +119,7 @@ class iCubBreather: public RFModule
{
switch (command.get(0).asVocab())
{
case VOCAB4('s','t','a','r'):
case createVocab('s','t','a','r'):
{
int res=Vocab::encode("started");
if (iCubBreatherThrd -> startBreathing())
Expand All @@ -132,7 +132,7 @@ class iCubBreather: public RFModule
reply.addVocab(res);
return true;
}
case VOCAB4('s','t','o','p'):
case createVocab('s','t','o','p'):
{
int res=Vocab::encode("stopped");
if (iCubBreatherThrd -> stopBreathing())
Expand Down
2 changes: 1 addition & 1 deletion modules/iCubWriter/main.cpp
Expand Up @@ -523,7 +523,7 @@ class WriterModule: public RFModule
switch (command.get(0).asVocab())
{
//-----------------
case VOCAB2('g','o'):
case createVocab('g','o'):
{
if (doWriting())
reply.addVocab(ack);
Expand Down

0 comments on commit 974cd6e

Please sign in to comment.