Make it possible to read and set the target voltage in the same command

This commit is contained in:
MCUdude
2026-04-16 07:56:10 +02:00
parent c8f8e6343b
commit bf2f001a46

View File

@@ -546,7 +546,7 @@ retry:
if(my.varef_get)
msg_info("Analog reference voltage value read as %.2f V\n", (varef_read/10.0));
// Write analog reference voltage
else {
if(my.varef_set) {
msg_info("Changing analog reference voltage from %.2f V to %.2f V\n", (varef_read/10.0), my.varef_data);
if(pgm->set_varef(pgm, 0, my.varef_data) < 0)
return -1;