Tang Jia

Results 5 comments of Tang Jia

I have the same problem with you.

"Unsupported ethertype 86dd." 0x86DD is the IPv6 type, and the IPv6 protocol isn't supported in the programs. But also I don't find the solutions.

我自己试过添加 cts/rts 驱动,但是在 windows 环境下还是不可以:https://github.com/Jackistang/rtthread-qemu-ble/commit/f20485adfed44b219f328e58d2ad6b1eb50dc9d1#diff-35e74e2c3ce0379ae398a70c885636d0d25a8ba236fdbd0d0bf0f53ce4895d8f 我更新下 windows 环境下的 qemu 再试试。

可以添加一种注册方式,建一张注册表,里面包含Button,事件,回调函数,然后调用函数之间初始化整张表。

@SSEHX你说的这种情况作者确实没有考虑到,按照代码里的思路,在连续按下、抬起的过程中突然保持按下的动作不变,此时应该切换为状态5也就是长按状态,但是代码卡死在了状态3,因为它必须等待按键抬起。 是不是应该改为下面这种代码呢?当按键按下的时间超过 SHORT_TICKS 个时间后自动切换为状态0,感觉切换成状态1也可以,之后就能够自动处理长按事件了。 ```C case 3: if(handle->button_level != handle->active_level) { //released press up handle->event = (uint8_t)PRESS_UP; EVENT_CB(PRESS_UP); if(handle->ticks < SHORT_TICKS) { handle->ticks = 0; handle->state = 2; //repeat press...