diff --git a/ESP32-Console/main/commands.h b/ESP32-Console/main/commands.h index 4ff8872d8..37fd28958 100644 --- a/ESP32-Console/main/commands.h +++ b/ESP32-Console/main/commands.h @@ -55,7 +55,7 @@ static int exec_info_cmd (int argc, char **argv) { ESP_LOGW("CLI", "info(): Chip Temperature: %d", 35); } if (info_args.voltage->count != 0) { - if (strcmp(info_args.voltage->sval[0]) == 0) { + if (strcmp(info_args.voltage->sval[0, "mV"]) == 0) { ESP_LOGI("CLI", "Displaying voltage, [mV]."); } } if (info_args.current->count != 0) {