From fb360c9d24501c589eedb6d3cdafbc94b94fc9a9 Mon Sep 17 00:00:00 2001 From: Li Hua Qian Date: Fri, 22 Sep 2023 11:41:04 +0800 Subject: [PATCH] board-conf-tools: Refine the iot2050setup Arduino IOs and GPIOs are not needed on IOT2050 SM Variant. Signed-off-by: Li Hua Qian --- .../board-conf-tools/files/board-conf-tools/iot2050setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes-app/board-conf-tools/files/board-conf-tools/iot2050setup.py b/recipes-app/board-conf-tools/files/board-conf-tools/iot2050setup.py index 92af7cde3..07ca594f1 100755 --- a/recipes-app/board-conf-tools/files/board-conf-tools/iot2050setup.py +++ b/recipes-app/board-conf-tools/files/board-conf-tools/iot2050setup.py @@ -676,8 +676,9 @@ def __init__(self, topmenu): self.topmenu = topmenu def show(self): - menuItems = [('Configure External COM Ports', ExternalSerialMode(self.topmenu)), - ('Configure Arduino I/O', ArduinoIoMode(self.topmenu))] + menuItems = [('Configure External COM Ports', ExternalSerialMode(self.topmenu))] + if self.topmenu.boardType != 'IOT2050 Advanced SM': + menuItems.append(('Configure Arduino I/O', ArduinoIoMode(self.topmenu))) if self.topmenu.boardType == 'IOT2050 Advanced M2': menuItems.append(('Configure M.2 Connector', M2Connector(self.topmenu)))