From d7dc8448cb0168f7856bb4d21361402abdc16512 Mon Sep 17 00:00:00 2001 From: MCUdude Date: Thu, 14 Sep 2023 19:20:02 +0200 Subject: [PATCH] Formatting --- src/serialadapter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/serialadapter.c b/src/serialadapter.c index 908b6341a..bff3253dc 100644 --- a/src/serialadapter.c +++ b/src/serialadapter.c @@ -117,7 +117,7 @@ static int sa_num_matches_by_sea(const SERIALADAPTER *sea, SERPORT *sp, const ch for (LNODEID usbpid = lfirst(sea->usbpid); usbpid; usbpid = lnext(usbpid)) { if (sp[i].pid == *(int *)(ldata(usbpid))) { const char *sn = *sernum? sernum: sea->usbsn; - if(sa_snmatch(sp[i].sernum, sn)) // also matches NULL + if (sa_snmatch(sp[i].sernum, sn)) // Also matches if second argument is NULL matches++; } } @@ -131,7 +131,7 @@ static int sa_num_matches_by_vid_pid(int vid, int pid, SERPORT *sp, const char * for (int i = 0; i < n; i++) { if (sp[i].vid == vid) { if (sp[i].pid == pid) { - if(sa_snmatch(sp[i].sernum, sernum)) // also matches NULL + if (sa_snmatch(sp[i].sernum, sernum)) // Also matches if second argument is NULL matches++; } }