Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rmtsrc authored Dec 9, 2019
1 parent 59d68ec commit 010b194
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/tempered.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void show_help()
" --help Show this help text\n"
" -t\n"
" --type Returns only the numeric value of the sensor.\n"
" Known sensors: temperature, humidity, due-point\n"
" Known sensors: temperature, humidity, dew point\n"
" -e\n"
" --enumerate Enumerate the found devices without reading them.\n"
" -s <scale>\n"
Expand Down Expand Up @@ -134,7 +134,7 @@ struct my_options* parse_options( int argc, char *argv[] )
} break;
}
}
if ( options.output_type != NULL && !( strcmp(options.output_type, "temperature") == 0 || strcmp(options.output_type, "humidity") == 0 || strcmp(options.output_type, "due-point") == 0 ) )
if ( options.output_type != NULL && !( strcmp(options.output_type, "temperature") == 0 || strcmp(options.output_type, "humidity") == 0 || strcmp(options.output_type, "dew point") == 0 ) )
{
fprintf( stderr, "Output type not found: %s\n", options.output_type );
return NULL;
Expand Down Expand Up @@ -238,7 +238,7 @@ void print_device_sensor(
rel_hum
);
}
else if ( strcmp(options->output_type, "due-point") == 0 )
else if ( strcmp(options->output_type, "dew point") == 0 )
{
printf(
"%.1f",
Expand Down

0 comments on commit 010b194

Please sign in to comment.