the stKEY_ERR_FLAG defined in key.h , this can not use the struct
Hi@Jack527
Do you mind uploading you code or sending it to my mailbox (key.h & motor.h) ,because too less information for me to troubleshooting the problem.
Here is a sample code ,may help you to solve your problem.
BR!
Jim.