Show
Ignore:
Timestamp:
05/27/08 19:26:31 (7 years ago)
Author:
khali
Message:

Display the local temperature of the MAX6657 with one decimal place.
The chip can do it even though the lm90 driver doesn't support it yet.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/sensors/chips.c

    r5052 r5265  
    49924992  double cur, high, low, hyst; 
    49934993  int valid, alarms; 
     4994  const int is_max6657 = !strcmp(name->prefix, "max6657"); 
    49944995 
    49954996  if (!sensors_get_feature(*name, SENSORS_LM90_ALARMS, &cur)) 
     
    50075008    if (valid) { 
    50085009      print_label(label, 10); 
    5009       print_temp_info(cur, high, low, MINMAX, 0, 0); 
     5010      print_temp_info(cur, high, low, MINMAX, is_max6657 ? 1 : 0, 0); 
    50105011      printf(" %s\n", 
    50115012        alarms&LM90_ALARM_LOCAL_CRIT?"CRITICAL":