mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 06:15:15 +00:00
Change mtp008 temperature reporting from max/min to limit/hyst.
Change initial values in driver from 70/5 to 70/50. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1032 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -77,7 +77,7 @@ void print_temp_info( float cur, float over, float hyst, int minmax )
|
||||
if(minmax == MINMAX)
|
||||
printf( "%+3.1f%s (min = %+3.0f%s, max = %+3.0f%s)",
|
||||
n_cur, degv, n_hyst, degv, n_over, degv );
|
||||
else
|
||||
else /* HYST */
|
||||
printf( "%+3.1f%s (limit = %+3.0f%s, hysteresis = %+3.0f%s)",
|
||||
n_cur, degv, n_over, degv, n_hyst, degv );
|
||||
}
|
||||
@@ -1598,7 +1598,7 @@ void print_mtp008(const sensors_chip_name *name)
|
||||
!sensors_get_feature(*name,SENSORS_MTP008_TEMP1_OVER,&max)) {
|
||||
if (valid) {
|
||||
print_label(label,10);
|
||||
print_temp_info( cur, max, min, MINMAX );
|
||||
print_temp_info( cur, max, min, HYST );
|
||||
printf(" %s\n", alarms&MTP008_ALARM_TEMP1?"ALARM":"");
|
||||
}
|
||||
} else
|
||||
@@ -1611,7 +1611,7 @@ void print_mtp008(const sensors_chip_name *name)
|
||||
!sensors_get_feature(*name,SENSORS_MTP008_TEMP2_OVER,&max)) {
|
||||
if (valid) {
|
||||
print_label(label,10);
|
||||
print_temp_info( cur, max, min, MINMAX );
|
||||
print_temp_info( cur, max, min, HYST );
|
||||
printf(" %s\n", alarms&MTP008_ALARM_TEMP2?"ALARM":"");
|
||||
}
|
||||
} else
|
||||
@@ -1624,7 +1624,7 @@ void print_mtp008(const sensors_chip_name *name)
|
||||
!sensors_get_feature(*name,SENSORS_MTP008_TEMP3_OVER,&max)) {
|
||||
if (valid) {
|
||||
print_label(label,10);
|
||||
print_temp_info( cur, max, min, MINMAX );
|
||||
print_temp_info( cur, max, min, HYST );
|
||||
printf(" %s\n", alarms&MTP008_ALARM_TEMP3?"ALARM":"");
|
||||
}
|
||||
} else
|
||||
|
Reference in New Issue
Block a user