Merge pull request #15921 from gemu2015/sml_update

fix number of esp32 uarts
This commit is contained in:
Theo Arends 2022-07-04 10:23:30 +02:00 committed by GitHub
commit 46b62a4cab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2886,7 +2886,7 @@ init10:
RtcSettings.pulse_counter[i] = Settings->pulse_counter[i];
sml_counters[i].sml_cnt_last_ts = millis();
}
uint32_t uart_index = 2;
uint32_t uart_index = SOC_UART_NUM - 1;
sml_counter_pinstate = 0;
for (uint8_t meters = 0; meters < meters_used; meters++) {
if (meter_desc_p[meters].type == 'c') {