From 1e72845870358e4722b41ac01b3e237c7a61cc61 Mon Sep 17 00:00:00 2001 From: TexZK Date: Wed, 10 Apr 2013 16:36:51 +0200 Subject: [PATCH] Fixed turtlesim demos Andrea Zoppi --- demos/turtlesim-chibios+lwip/src/urosUser.c | 6 +++--- demos/turtlesim-posix/src/urosUser.c | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/demos/turtlesim-chibios+lwip/src/urosUser.c b/demos/turtlesim-chibios+lwip/src/urosUser.c index d30de06..c489226 100644 --- a/demos/turtlesim-chibios+lwip/src/urosUser.c +++ b/demos/turtlesim-chibios+lwip/src/urosUser.c @@ -350,7 +350,7 @@ uros_err_t urosUserParamUpdate(const UrosString *keyp, /* Check if [/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)); urosError(paramp->value.int32 < 0 || paramp->value.int32 > 255, @@ -365,7 +365,7 @@ uros_err_t urosUserParamUpdate(const UrosString *keyp, /* Check if [/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)); urosError(paramp->value.int32 < 0 || paramp->value.int32 > 255, @@ -380,7 +380,7 @@ uros_err_t urosUserParamUpdate(const UrosString *keyp, /* Check if [/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)); urosError(paramp->value.int32 < 0 || paramp->value.int32 > 255, diff --git a/demos/turtlesim-posix/src/urosUser.c b/demos/turtlesim-posix/src/urosUser.c index 81aa4e5..e16a2fa 100644 --- a/demos/turtlesim-posix/src/urosUser.c +++ b/demos/turtlesim-posix/src/urosUser.c @@ -470,9 +470,9 @@ uros_err_t urosUserParamUpdate(const UrosString *keyp, /* Check if [/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", @@ -485,9 +485,9 @@ uros_err_t urosUserParamUpdate(const UrosString *keyp, /* Check if [/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", @@ -500,9 +500,9 @@ uros_err_t urosUserParamUpdate(const UrosString *keyp, /* Check if [/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",