Skip to content

Commit 4ad83e7

Browse files
yishai1999kartben
authored andcommitted
samples: dht_polling: fix print to match the docs
Added a percentage sign to match what's written in the README and sample.yaml Signed-off-by: Yishai Jaffe <[email protected]>
1 parent 57b8b05 commit 4ad83e7

File tree

1 file changed

+1
-1
lines changed
  • samples/sensor/dht_polling/src

1 file changed

+1
-1
lines changed

samples/sensor/dht_polling/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ int main(void)
8484
(struct sensor_chan_spec) {SENSOR_CHAN_HUMIDITY, 0},
8585
&hum_fit, 1, &hum_data);
8686

87-
printk("%16s: temp is %s%d.%d °C humidity is %s%d.%d RH\n", dev->name,
87+
printk("%16s: temp is %s%d.%d °C humidity is %s%d.%d %%RH\n", dev->name,
8888
PRIq_arg(temp_data.readings[0].temperature, 2, temp_data.shift),
8989
PRIq_arg(hum_data.readings[0].humidity, 2, hum_data.shift));
9090
}

0 commit comments

Comments
 (0)