fxlink: don't list non-CASIO devices in TUI

This commit is contained in:
Lephenixnoir 2025-03-08 23:25:23 +01:00
parent f1721186bb
commit a98bbff1c9
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -113,6 +113,9 @@ static void TUI_render_status(void)
struct fxlink_device *fdev = &TUI.devices.devices[i]; struct fxlink_device *fdev = &TUI.devices.devices[i];
struct fxlink_calc *calc = fdev->calc; struct fxlink_calc *calc = fdev->calc;
if(fdev->idVendor != 0x07cf)
continue;
if(fdev->status == FXLINK_FDEV_STATUS_CONNECTED) { if(fdev->status == FXLINK_FDEV_STATUS_CONNECTED) {
wattron(win, fmt_to_ncurses_attr(FMT_BGSELECTED)); wattron(win, fmt_to_ncurses_attr(FMT_BGSELECTED));
mvwhline(win, y, 0, ' ', w); mvwhline(win, y, 0, ' ', w);