Skip to content

Commit

Permalink
fix error when no serial ports found.
Browse files Browse the repository at this point in the history
  • Loading branch information
EiichiroIto committed Mar 29, 2021
1 parent 4eef351 commit 42d88c0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Binary file modified microwitch.image
Binary file not shown.
1 change: 1 addition & 0 deletions src/fix errors when no serial ports.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
'From MIT Squeak 0.9.4 (June 1, 2003) [No updates present.] on 29 March 2021 at 4:45:32 pm'!!MicroPythonBoard methodsFor: 'serial port'!portNames Smalltalk isUnix ifTrue: [^ self unixPortNames]. Smalltalk isWindows ifTrue: [^ self winPortNames]. ScratchPlugin serialPortOpsAvailable ifFalse: [^ (1 to: 32) collect: [:i | 'COM' , i printString]]. ^ SerialPort2 portNames reject: [:n | (n asLowercase includesSubString: 'modem') or: [n asLowercase includesSubString: 'pda-sync']]! !!MicroPythonBoard methodsFor: 'serial port'!winPortNames | str | str := MicrowitchPlugin enumerateComPorts. str ifNil: [^ #()]. ^ str lines! !
Expand Down
2 changes: 1 addition & 1 deletion src/microwitch.changes

Large diffs are not rendered by default.

0 comments on commit 42d88c0

Please sign in to comment.