tundra-labs / rp2040_examples

MIT License
18 stars 1 forks source link

mi_master_dfu_frame_t struct defined twice #1

Open kwahoo2 opened 1 year ago

kwahoo2 commented 1 year ago

Hi, In the _mapped_inputtypes.h there is duplicated code

typedef struct __attribute__( ( packed, aligned( 1 ) ) )
{
  uint8_t                   spi_protocol_rev;
  uint8_t                   frame_id;
  uint8_t                   cmd;
  uint8_t                   length;
  uint8_t                   payload[64];
}
mi_master_dfu_frame_t;

typedef struct __attribute__( ( packed, aligned( 1 ) ) )
{
  uint8_t                   spi_protocol_rev;
  uint8_t                   frame_id;
  uint8_t                   cmd;
  uint8_t                   length;
  uint8_t                   payload[64];
}
mi_master_dfu_frame_t;
kwahoo2 commented 1 year ago

The error seems to be introduced in this commit https://github.com/tundra-labs/rp2040_examples/commit/ae837aed116ddd2dbf4a3b55a1b209ecb42e9184