summaryrefslogtreecommitdiff
path: root/util/isensor.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-10-01 22:45:07 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-10-01 22:45:07 +0200
commit7a8116a7f5355f947610a4bd916d27048775bfd2 (patch)
tree79e750e6302676ca2408a4b585abee55bfa4e2ef /util/isensor.c
parent644c6ecf8e0979cade08ae83fe2fe69941e5da40 (diff)
parent499ce7f7eb7c228d72e646527ce9a5c2950ad58f (diff)
Update upstream source from tag 'upstream/3.1.3'
Update to upstream version '3.1.3' with Debian dir 85319bed14e4539db0e402b9a25c043b8ded36f5
Diffstat (limited to 'util/isensor.c')
-rw-r--r--util/isensor.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/isensor.c b/util/isensor.c
index 8bb2935..df4a911 100644
--- a/util/isensor.c
+++ b/util/isensor.c
@@ -2635,11 +2635,11 @@ ShowSDR(char *tag, uchar *sdr)
memcpy(idstr,&sdr[ioff],ilen);
for (i=ilen; i<16; i++) { idstr[i] = ' '; ilen++; }
idstr[ilen] = 0; /* stringify */
- if ((sdr01->sens_capab & 0x40) == 0) brearm = 'm'; /*manual rearm*/
- else brearm = 'a'; /*automatic rearm*/
+ if ((sdr01->sens_capab & 0x40) == 0) brearm = 'm'; /*manual rearm*/
+ else brearm = 'a'; /*automatic rearm*/
if (fdebug) printf("entity %d.%d, idlen=%d sizeof=%lu idstr0=%c s0=%x\n",
- sdr01->entity_id, sdr01->entity_inst,
- ilen,sizeof(SDR01REC),idstr[0],sdr[ioff]);
+ sdr01->entity_id, sdr01->entity_inst,
+ ilen,sizeof(SDR01REC),idstr[0],sdr[ioff]);
rc = GetSensorReading(sdr01->sens_num,sdr01,sens);
if (rc != 0) { /* if rc != 0, leave sens values zero */
i = 41; /* Unknown */
@@ -2662,8 +2662,8 @@ ShowSDR(char *tag, uchar *sdr)
sdr01->sens_num);
}
else val = RawToFloat(sens[0],sdr);
- typestr = get_unit_type(sdr01->sens_units, sdr01->sens_base,
- sdr01->sens_mod, fsimple);
+ typestr = get_unit_type(sdr01->sens_units, sdr01->sens_base,
+ sdr01->sens_mod, fsimple);
#ifdef WRONG
if (is_romley(vend_id,prod_id) &&
(sdr01->sens_type == 0x0C) && (sdr01->sens_units & 0x01))
@@ -2683,11 +2683,11 @@ ShowSDR(char *tag, uchar *sdr)
else
snprintf(rdgstr,sizeof(rdgstr),"%02x %s %.2f %s",
sens[0], sensor_dstatus[i],val,typestr);
- }
+ }
sep[0] = 0; /*null string*/
printf("%s", tag);
if (fsimple) {
- sprintf(sep,"%c ",bdelim);
+ sprintf(sep,"%c ",bdelim);
printf("%04x %c Full %c %s %c %02x %c %s %c %s%c",
sdr01->recid, bdelim, bdelim,
get_stype_str(sdr01->sens_type),