Skip to content
Snippets Groups Projects
Commit ec11dd11 authored by rahix's avatar rahix
Browse files

chore(card10-board): Fix a sign-compare warning


Fix the following warning:

    lib/sdk/Libraries/Boards/card10/Source/board.c: In function 'Board_Init':
    lib/sdk/Libraries/Boards/card10/Source/board.c:102:19: warning:
             comparison of integer expressions of different signedness:
             'int' and 'unsigned int' [-Wsign-compare]
      102 |     for (i = 0; i < num_pins; i++) {
          |                   ^

Signed-off-by: default avatarRahix <rahix@rahix.de>
parent 6b140848
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,7 @@ int Board_Init(void)
{PORT_0, PIN_31, GPIO_FUNC_OUT, GPIO_PAD_NONE}, // ECG switch
};
const unsigned int num_pins = (sizeof(pins) / sizeof(gpio_cfg_t));
int i;
unsigned int i;
for (i = 0; i < num_pins; i++) {
GPIO_OutClr(&pins[i]);
GPIO_Config(&pins[i]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment