bouffalolab / bouffalo_sdk

BouffaloSDK is the IOT and MCU software development kit provided by the Bouffalo Lab Team, supports all the series of Bouffalo chips. Also it is the combination of bl_mcu_sdk and bl_iot_sdk
Apache License 2.0
349 stars 121 forks source link

'bflb_device_get_by_id'这个函数有bug #188

Closed Tliang4540 closed 7 months ago

Tliang4540 commented 7 months ago

if ((bl616_device_table[i].dev_type == type) && (bl616_device_table[i].idx = idx)) { return &bl616_device_table[i]; } bl616_device_table[i].idx = idx应该是bl616_device_table[i].idx == idx吧

sakumisu commented 7 months ago

是的,这边是有错误的。不过这个api废掉了,没有用处

Tliang4540 commented 7 months ago

是的,这边是有错误的。不过这个api废掉了,没有用处

为什么废掉了?只能用get_by_name了吗?

sakumisu commented 7 months ago

方便对接其他平台