Re: [PATCH v2 2/3] menu: add support to check if menu needs to be reprinted

2024-10-31 Thread Daniel Golle
On Tue, Oct 29, 2024 at 05:47:16PM +0800, Weijie Gao wrote: > This patch adds a new callback named need_reprint for menu. > The need_reprint will be called before printing the menu. If the > callback exists and returns FALSE, menu printing will be canceled. > > This is very useful if the menu was

[PATCH v2 2/3] menu: add support to check if menu needs to be reprinted

2024-10-29 Thread Weijie Gao
This patch adds a new callback named need_reprint for menu. The need_reprint will be called before printing the menu. If the callback exists and returns FALSE, menu printing will be canceled. This is very useful if the menu was not changed. It can save time for serial-based menu to handle more inp