Skip to content
Snippets Groups Projects
Commit 33f02c29 authored by ballen4705's avatar ballen4705
Browse files

Added new temperature attribute.

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@110 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent eb50cc21
No related branches found
No related tags found
No related merge requests found
11 12
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include <errno.h> #include <errno.h>
#include "atacmds.h" #include "atacmds.h"
const char *CVSid1="$Id: atacmds.c,v 1.22 2002/10/24 09:54:02 ballen4705 Exp $" CVSID1; const char *CVSid1="$Id: atacmds.c,v 1.23 2002/10/24 11:16:51 ballen4705 Exp $" CVSID1;
// These Drive Identity tables are taken from hdparm 5.2, and are also // These Drive Identity tables are taken from hdparm 5.2, and are also
// given in the ATA/ATAPI specs for the IDENTIFY DEVICE command. Note // given in the ATA/ATAPI specs for the IDENTIFY DEVICE command. Note
...@@ -717,6 +717,7 @@ void ataPrintSmartAttribName(char *out, unsigned char id){ ...@@ -717,6 +717,7 @@ void ataPrintSmartAttribName(char *out, unsigned char id){
name="UDMA_CRC_Error_Count"; name="UDMA_CRC_Error_Count";
break; break;
case 220: case 220:
// Note -- this is also apparently used for temperature.
name="Disk_Shift"; name="Disk_Shift";
break; break;
case 221: case 221:
...@@ -743,6 +744,8 @@ void ataPrintSmartAttribName(char *out, unsigned char id){ ...@@ -743,6 +744,8 @@ void ataPrintSmartAttribName(char *out, unsigned char id){
case 228: case 228:
name="Power-off_Retract_Count"; name="Power-off_Retract_Count";
break; break;
case 231:
name="Temperature_Centigrade";
default: default:
name="Unknown_Attribute"; name="Unknown_Attribute";
break; break;
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include <errno.h> #include <errno.h>
#include "atacmds.h" #include "atacmds.h"
const char *CVSid1="$Id: atacmds.cpp,v 1.22 2002/10/24 09:54:02 ballen4705 Exp $" CVSID1; const char *CVSid1="$Id: atacmds.cpp,v 1.23 2002/10/24 11:16:51 ballen4705 Exp $" CVSID1;
// These Drive Identity tables are taken from hdparm 5.2, and are also // These Drive Identity tables are taken from hdparm 5.2, and are also
// given in the ATA/ATAPI specs for the IDENTIFY DEVICE command. Note // given in the ATA/ATAPI specs for the IDENTIFY DEVICE command. Note
...@@ -717,6 +717,7 @@ void ataPrintSmartAttribName(char *out, unsigned char id){ ...@@ -717,6 +717,7 @@ void ataPrintSmartAttribName(char *out, unsigned char id){
name="UDMA_CRC_Error_Count"; name="UDMA_CRC_Error_Count";
break; break;
case 220: case 220:
// Note -- this is also apparently used for temperature.
name="Disk_Shift"; name="Disk_Shift";
break; break;
case 221: case 221:
...@@ -743,6 +744,8 @@ void ataPrintSmartAttribName(char *out, unsigned char id){ ...@@ -743,6 +744,8 @@ void ataPrintSmartAttribName(char *out, unsigned char id){
case 228: case 228:
name="Power-off_Retract_Count"; name="Power-off_Retract_Count";
break; break;
case 231:
name="Temperature_Centigrade";
default: default:
name="Unknown_Attribute"; name="Unknown_Attribute";
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment