You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2021/09/16 10:44:24 UTC
[GitHub] [mynewt-mcumgr] 5frank commented on issue #100: Bit field in header
5frank commented on issue #100:
URL: https://github.com/apache/mynewt-mcumgr/issues/100#issuecomment-920789704
@alokprinc perhaps remove bitfield and change all access to `nh_op` to use a bitmask. example:
```
struct mgmt_hdr_no_bitfield {
uint8_t nh_op; /
..
#define MGMT_HDR_OP_MASK (0x7)
...
uint8_t op = some_header.nh_op & MGMT_HDR_OP_MASK;
.
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org