mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 06:48:16 +00:00
messages: code cleanup after emulator change
This commit is contained in:
parent
8851863f81
commit
9c9b4bf5cb
@ -48,12 +48,7 @@ const pb_field_t *MessageFields(char type, char dir, uint16_t msg_id)
|
||||
{
|
||||
const struct MessagesMap_t *m = MessagesMap;
|
||||
while (m->type) {
|
||||
#if EMULATOR
|
||||
(void) type;
|
||||
if (dir == m->dir && msg_id == m->msg_id) {
|
||||
#else
|
||||
if (type == m->type && dir == m->dir && msg_id == m->msg_id) {
|
||||
#endif
|
||||
return m->fields;
|
||||
}
|
||||
m++;
|
||||
@ -65,12 +60,7 @@ void MessageProcessFunc(char type, char dir, uint16_t msg_id, void *ptr)
|
||||
{
|
||||
const struct MessagesMap_t *m = MessagesMap;
|
||||
while (m->type) {
|
||||
#if EMULATOR
|
||||
(void) type;
|
||||
if (dir == m->dir && msg_id == m->msg_id) {
|
||||
#else
|
||||
if (type == m->type && dir == m->dir && msg_id == m->msg_id) {
|
||||
#endif
|
||||
m->process_func(ptr);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user