Skip to content

Commit a252bee

Browse files
authored
Merge pull request #5 from MStanton99/master
ok, thank you very much. I will update the pckage soon but first i would need to test it on a machine.
2 parents 4f4549f + 68a84b9 commit a252bee

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

sentio_prober_control/Sentio/CommandGroups/WafermapCommandGroup.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,16 @@ def set_color_scheme(self, scheme: ColorScheme):
151151
#
152152
###############################################################################################
153153

154-
def step_first_die(self, site: int = 0) -> Tuple[int, int, int]:
155-
self._comm.send("map:step_first_die {0}".format(site))
154+
def step_first_die(self, site: int=None) -> Tuple[int, int, int]:
155+
if site == None:
156+
self._comm.send("map:step_first_die")
157+
else:
158+
self._comm.send(f"map:step_first_die {site}")
159+
156160
resp = Response.parse_resp(self._comm.read_line())
157-
161+
158162
self.__end_of_route = (resp.status() & StatusBits.EndOfRoute) == StatusBits.EndOfRoute
159-
163+
160164
if not resp.ok():
161165
raise ProberException(resp.message(), resp.errc())
162166

@@ -234,4 +238,4 @@ def step_die_seq(self, seq: int, site: int) -> Tuple[int, int, int]:
234238
return int(tok[0]), int(tok[1]), int(tok[2])
235239

236240
def end_of_route(self):
237-
return self.__end_of_route
241+
return self.__end_of_route

0 commit comments

Comments
 (0)