Skip to content

Commit

Permalink
fixing window sensor printf error Juerd#10
Browse files Browse the repository at this point in the history
Use of uninitialized value $setpoint in printf at /usr/local/bin/max line 147, <GEN0> line 18.
  • Loading branch information
m0sa authored Oct 7, 2021
1 parent 4b24e69 commit eb962a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/max
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ sub do_status {
for my $device (@devices) {
next if $device->is_cube;

my $setpoint = sprintf "%s@%.1f ", $device->mode, $device->setpoint
my $setpoint = "";
$setpoint = sprintf "%s@%.1f ", $device->mode, $device->setpoint
if $device->has_setpoint;

my $extra =
Expand Down

0 comments on commit eb962a6

Please sign in to comment.