4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 08:53:31 +08:00

Update sensor.c

This commit is contained in:
guo 2021-12-24 10:10:59 +08:00 committed by GitHub
parent 51569a068a
commit dcce9886e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -488,7 +488,7 @@ int rt_hw_sensor_register(rt_sensor_t sensor,
return result;
}
rt_free(device_name);
LOG_I("rt_sensor[%s] init success", device_name);
rt_free(device_name);
return RT_EOK;
}