mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-10 23:40:58 +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;
|
const struct MessagesMap_t *m = MessagesMap;
|
||||||
while (m->type) {
|
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) {
|
if (type == m->type && dir == m->dir && msg_id == m->msg_id) {
|
||||||
#endif
|
|
||||||
return m->fields;
|
return m->fields;
|
||||||
}
|
}
|
||||||
m++;
|
m++;
|
||||||
@ -65,12 +60,7 @@ void MessageProcessFunc(char type, char dir, uint16_t msg_id, void *ptr)
|
|||||||
{
|
{
|
||||||
const struct MessagesMap_t *m = MessagesMap;
|
const struct MessagesMap_t *m = MessagesMap;
|
||||||
while (m->type) {
|
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) {
|
if (type == m->type && dir == m->dir && msg_id == m->msg_id) {
|
||||||
#endif
|
|
||||||
m->process_func(ptr);
|
m->process_func(ptr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user