Skip to content

Commit

Permalink
board-conf-tools: Refine the iot2050setup
Browse files Browse the repository at this point in the history
Arduino IOs and GPIOs are not needed on IOT2050 SM Variant.

Signed-off-by: Li Hua Qian <[email protected]>
  • Loading branch information
huaqianli authored and BaochengSu committed Dec 14, 2023
1 parent 53bec12 commit fb360c9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Expand Down

0 comments on commit fb360c9

Please sign in to comment.