Mikrocontroller-net / transistortester

https://www.mikrocontroller.net/articles/AVR_Transistortester
427 stars 146 forks source link

Menu exit time #5

Open zhqsoft opened 3 years ago

zhqsoft commented 3 years ago

How to modify the auto exit waiting time under the menu interface? Now it takes 1400 seconds. It's too long. I didn't find the relevant settings in the source code.

pav1388 commented 3 years ago

File function_menu.c Find ii = wait_for_key_ms(SHORT_WAIT_TIME); Replace ii = wait_for_key_ms(200); It turns out about 30 seconds. Two years ago it definitely worked.

zhqsoft commented 3 years ago

文件 function_menu.c 查找 ii = wait_for_key_ms(SHORT_WAIT_TIME); 替换 ii = wait_for_key_ms(200); 结果是大约 30 秒。两年前它确实有效。

非常感谢,已经成功了。替换成200,无操作1分钟自动退出

File function_menu.c Find ii = wait_for_key_ms(SHORT_WAIT_TIME); Replace ii = wait_for_key_ms(200); It turns out about 30 seconds. Two years ago it definitely worked.

Thank you very much. It has been successful. Replace with 200 and exit automatically after 1 minute without operation。

zhqsoft commented 3 years ago

200 will lead to abnormal key function. It takes at least 1000, but it takes too long