mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-06 08:37:29 +02:00
global: fix sign-compare warnings
This commit is contained in:
@@ -92,7 +92,7 @@ esp_err_t temp_sensor_get_config(temp_sensor_config_t *tsens)
|
||||
SET_PERI_REG_MASK(ANA_CONFIG2_REG, ANA_SAR_CFG2_M);
|
||||
tsens->dac_offset = REGI2C_READ_MASK(I2C_SAR_ADC, I2C_SARADC_TSENS_DAC);
|
||||
for (int i = TSENS_DAC_L0; i < TSENS_DAC_MAX; i++) {
|
||||
if (tsens->dac_offset == dac_offset[i].set_val) {
|
||||
if ((int)tsens->dac_offset == dac_offset[i].set_val) {
|
||||
tsens->dac_offset = dac_offset[i].index;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ static void touch_pad_workaround_isr_internal(void *arg)
|
||||
{
|
||||
uint16_t ch_mask = 0;
|
||||
uint32_t intr_mask = touch_hal_read_intr_status_mask();
|
||||
uint32_t pad_num = touch_hal_get_current_meas_channel();
|
||||
int pad_num = touch_hal_get_current_meas_channel();
|
||||
/* Make sure that the scan done interrupt is generated after the last channel measurement is completed. */
|
||||
if (intr_mask & TOUCH_PAD_INTR_MASK_SCAN_DONE) {
|
||||
touch_hal_get_channel_mask(&ch_mask);
|
||||
|
||||
Reference in New Issue
Block a user