aboutsummaryrefslogtreecommitdiffstats
path: root/src/linux
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux')
-rw-r--r--src/linux/sensor_ds18b20.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/sensor_ds18b20.c b/src/linux/sensor_ds18b20.c
index 9b4e3e6f..6ac58f35 100644
--- a/src/linux/sensor_ds18b20.c
+++ b/src/linux/sensor_ds18b20.c
@@ -138,7 +138,7 @@ command_config_ds18b20(uint32_t *args)
{
// Open kernel port
uint8_t serial_len = args[1];
- uint8_t *serial = (void*)(size_t)args[2];
+ uint8_t *serial = command_decode_ptr(args[2]);
if (memchr(serial, '/', serial_len))
goto fail1;
char fname[56];