Skip to content

Commit dc0b190

Browse files
committed
Fix sign comparison build warning
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent ea4668b commit dc0b190

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

variants/s20u/variant.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extern "C"
3030
int g_ioHandles[GPIO_PIN_MAX];
3131
int g_ioModes[GPIO_PIN_MAX];
3232

33-
static const int adc_channel_map[6][2] = {
33+
static const uint32_t adc_channel_map[6][2] = {
3434
{GPIO_1, ADC_CH1},
3535
{GPIO_21, ADC_CH2},
3636
{GPIO_31, ADC_CH3},
@@ -39,7 +39,7 @@ static const int adc_channel_map[6][2] = {
3939
{GPIO_PIN_MAX + 1, ADC_CH5},
4040
};
4141

42-
static const int pwm_channel_map[2][2] = {
42+
static const uint32_t pwm_channel_map[2][2] = {
4343
{GPIO_1, PWM_CH0},
4444
{GPIO_36, PWM_CH1},
4545
};

0 commit comments

Comments
 (0)