mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-23 07:58:09 +00:00
firmware: need extra cast for nanopb call in message.c
This commit is contained in:
parent
1f1c3bf35f
commit
1072369bc4
@ -320,7 +320,8 @@ void msg_read_tiny(const uint8_t *buf, int len)
|
||||
}
|
||||
|
||||
const pb_field_t *fields = 0;
|
||||
pb_istream_t stream = pb_istream_from_buffer(buf + 9, msg_size);
|
||||
// upstream nanopb is missing const qualifier, so we have to cast :-/
|
||||
pb_istream_t stream = pb_istream_from_buffer((uint8_t *)buf + 9, msg_size);
|
||||
|
||||
switch (msg_id) {
|
||||
case MessageType_MessageType_PinMatrixAck:
|
||||
|
3
firmware/protob/.gitignore
vendored
3
firmware/protob/.gitignore
vendored
@ -1,3 +1,6 @@
|
||||
*.pb
|
||||
*_pb2.py
|
||||
*.pb.c
|
||||
*.pb.h
|
||||
messages_map.h
|
||||
__pycache__/
|
||||
|
Loading…
Reference in New Issue
Block a user