Skip to content

Commit

Permalink
fix smps invalid voltage warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
DESKTOP-M9CCUTI\ian committed Aug 2, 2024
1 parent 85822e3 commit 6c63978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/global/smps.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void smps_handler(struct command_result *res){
if(((!has_volts) && (!has_setpoints)) || volts<5.1f || volts>16.0f){

if(volts<5.1f || volts>16.0f){
printf("Invalid voltage: %f.2\r\n", volts);
printf("Invalid voltage: %1.2f\r\n", volts);
}

prompt_result result;
Expand Down

0 comments on commit 6c63978

Please sign in to comment.