[dm][core] fixup the rt_dm_dev_prop_read_u8_array_index OFW check

Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
GuEe-GUI
2025-12-09 17:22:26 +08:00
committed by R b b666
parent 7357abdc37
commit c857e03544

View File

@@ -485,11 +485,11 @@ int rt_dm_dev_prop_read_u8_array_index(rt_device_t dev, const char *propname,
{
RT_ASSERT(dev != RT_NULL);
#ifdef RT_UISNG_OFW
#ifdef RT_USING_OFW
if (dev->ofw_node)
{
return ofw_api_call(prop_read_u8_array_index, dev->ofw_node, propname,
index, nr, out_value);
index, nr, out_values);
}
#endif