Fix for negative int8 in sysparam. Tests update.

This commit is contained in:
sheinz 2016-11-28 09:59:12 +02:00
parent 8b9e757904
commit 2f611dfbc0
2 changed files with 1 additions and 5 deletions

View file

@ -1008,7 +1008,7 @@ sysparam_status_t sysparam_set_int32(const char *key, int32_t value) {
}
sysparam_status_t sysparam_set_int8(const char *key, int8_t value) {
return sysparam_set_int32(key, value);
return sysparam_set_data(key, (const uint8_t *)&value, sizeof(value), true);
}
sysparam_status_t sysparam_set_bool(const char *key, bool value) {