Skip to content

Commit

Permalink
Mark channel as unused in io_event
Browse files Browse the repository at this point in the history
  • Loading branch information
jibeee committed Sep 17, 2021
1 parent 8877753 commit 9f9214a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void io_seproxyhal_display(const bagl_element_t *element) {
io_seproxyhal_display_default((bagl_element_t *) element);
}

uint8_t io_event(uint8_t channel) {
uint8_t io_event(uint8_t channel __attribute__((unused))) {
switch (G_io_seproxyhal_spi_buffer[0]) {
case SEPROXYHAL_TAG_BUTTON_PUSH_EVENT:
UX_BUTTON_PUSH_EVENT(G_io_seproxyhal_spi_buffer);
Expand Down
2 changes: 1 addition & 1 deletion src/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void io_seproxyhal_display(const bagl_element_t *element);
* @return 1 if success, 0 otherwise.
*
*/
uint8_t io_event(uint8_t channel);
uint8_t io_event(uint8_t channel __attribute__((unused)));

uint16_t io_exchange_al(uint8_t channel, uint16_t tx_len);

Expand Down

0 comments on commit 9f9214a

Please sign in to comment.