Skip to content

Commit

Permalink
fix demos's bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yukihiro saito committed Apr 28, 2015
1 parent 83c75d1 commit ff9b37e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions demos/turtlesim-posix/src/urosUser.c
Expand Up @@ -470,9 +470,9 @@ uros_err_t urosUserParamUpdate(const UrosString *keyp,

/* Check if [<node>/background_r].*/
if (0 == urosStringCmp(keyp, &backcolparnameR)) {
urosError(paramp->class != UROS_RPCP_INT, return UROS_ERR_BADPARAM,
urosError(paramp->pclass != UROS_RPCP_INT, return UROS_ERR_BADPARAM,
("Parameter [%.*s] class id %d, expected %d (UROS_RPCP_INT)\n",
UROS_STRARG(keyp), (int)paramp->class, (int)UROS_RPCP_INT));
UROS_STRARG(keyp), (int)paramp->pclass, (int)UROS_RPCP_INT));
urosError(paramp->value.int32 < 0 || paramp->value.int32 > 255,
return UROS_ERR_BADPARAM,
("Parameter [%.*s] value %d outside [0..255]\n",
Expand All @@ -485,9 +485,9 @@ uros_err_t urosUserParamUpdate(const UrosString *keyp,

/* Check if [<node>/background_g].*/
if (0 == urosStringCmp(keyp, &backcolparnameG)) {
urosError(paramp->class != UROS_RPCP_INT, return UROS_ERR_BADPARAM,
urosError(paramp->pclass != UROS_RPCP_INT, return UROS_ERR_BADPARAM,
("Parameter [%.*s] class id %d, expected %d (UROS_RPCP_INT)\n",
UROS_STRARG(keyp), (int)paramp->class, (int)UROS_RPCP_INT));
UROS_STRARG(keyp), (int)paramp->pclass, (int)UROS_RPCP_INT));
urosError(paramp->value.int32 < 0 || paramp->value.int32 > 255,
return UROS_ERR_BADPARAM,
("Parameter [%.*s] value %d outside [0..255]\n",
Expand All @@ -500,9 +500,9 @@ uros_err_t urosUserParamUpdate(const UrosString *keyp,

/* Check if [<node>/background_b].*/
if (0 == urosStringCmp(keyp, &backcolparnameB)) {
urosError(paramp->class != UROS_RPCP_INT, return UROS_ERR_BADPARAM,
urosError(paramp->pclass != UROS_RPCP_INT, return UROS_ERR_BADPARAM,
("Parameter [%.*s] class id %d, expected %d (UROS_RPCP_INT)\n",
UROS_STRARG(keyp), (int)paramp->class, (int)UROS_RPCP_INT));
UROS_STRARG(keyp), (int)paramp->pclass, (int)UROS_RPCP_INT));
urosError(paramp->value.int32 < 0 || paramp->value.int32 > 255,
return UROS_ERR_BADPARAM,
("Parameter [%.*s] value %d outside [0..255]\n",
Expand Down

0 comments on commit ff9b37e

Please sign in to comment.