Skip to content

Commit

Permalink
Update internal_r.py
Browse files Browse the repository at this point in the history
Addressing misdoro#19
  • Loading branch information
wangnick authored Nov 14, 2024
1 parent be917af commit e451a9b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gui/internal_r.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,12 @@ def data_row(self, data, row):

if self._valid_data(data):
self._data_loop(data)
else:
elif self.mode != MODE_IDLE:
self.ignored_rows += 1
if self.ignored_rows > MAX_BAD_ROWS:
if self.mode == MODE_DROP:
self.backend.send_command(
{Instrument.COMMAND_SET_CURRENT: self.pre_current})
self._idle()

def _idle(self):
Expand Down

0 comments on commit e451a9b

Please sign in to comment.