Skip to content

Commit

Permalink
Update mqtt.pm
Browse files Browse the repository at this point in the history
As written, mqtt.pm discards any message with a value of 0 or "0".  This change preserves the intention of the coder, but preserves messages that would otherwise be interpreted as "false."
  • Loading branch information
tbclark3 authored Oct 2, 2022
1 parent 9398ae6 commit 6158844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mqtt.pm
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ sub parse_data_to_obj {

$self->debug( 3, "Msg object: " . Dumper( $msg ) );

if( !$msg->{message} ) {
if( !length($msg->{message}) ) {
# cleanup message -- ignore
return;
}
Expand Down

0 comments on commit 6158844

Please sign in to comment.