add BLOBMSG_TYPE_BOOL as an alias for BLOBMSG_TYPE_INT8
This commit is contained in:
parent
ed9b5c986b
commit
abbc140e8d
2 changed files with 3 additions and 2 deletions
|
@ -228,7 +228,7 @@ static void blobmsg_format_element(struct strbuf *s, struct blob_attr *attr, boo
|
|||
|
||||
data_str = buf;
|
||||
switch(blob_id(attr)) {
|
||||
case BLOBMSG_TYPE_INT8:
|
||||
case BLOBMSG_TYPE_BOOL:
|
||||
sprintf(buf, "%s", *(uint8_t *)data ? "true" : "false");
|
||||
break;
|
||||
case BLOBMSG_TYPE_INT32:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue