Skip to content

Commit

Permalink
Resolve warning to fix building in gcc 13
Browse files Browse the repository at this point in the history
  • Loading branch information
Dewb committed Oct 30, 2024
1 parent 79c58b1 commit f5d268f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions firmware/mock_hardware/common/adc.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "mock_hardware_api.h"
#include "types.h"

void adc_convert(u16 adc[4])
void adc_convert(u16 (*adc)[4])
{
adc[0] = hardware_getADC(0);
adc[1] = hardware_getADC(1);
adc[2] = hardware_getADC(2);
adc[3] = hardware_getADC(3);
(*adc)[0] = hardware_getADC(0);
(*adc)[1] = hardware_getADC(1);
(*adc)[2] = hardware_getADC(2);
(*adc)[3] = hardware_getADC(3);
}
2 changes: 1 addition & 1 deletion firmware/mock_hardware/include/adc.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "types.h"

void init_adc(void);
void adc_convert(u16 dst[4]);
void adc_convert(u16 (*dst)[4]);

0 comments on commit f5d268f

Please sign in to comment.