Skip to content

Commit

Permalink
factory: only output the serial number and firmware version once
Browse files Browse the repository at this point in the history
  • Loading branch information
theacodes committed Sep 20, 2021
1 parent e8d4267 commit ae20f2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion factory/libgemini/adc_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ def run(
log.info(f"Saved measurement data to {measurement_file}")

log.success("Done")
gem.close()


if __name__ == "__main__":
Expand Down
9 changes: 5 additions & 4 deletions factory/libgemini/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@ def get_serial_number(self):
return self.serial_number

def enter_calibration_mode(self):
self.get_firmware_version()
log.info(f"Gemini version: {self.version}")
self.get_serial_number()
log.info(f"Serial number: {self.serial_number}")
if self.version is None:
self.get_firmware_version()
log.info(f"Gemini version: {self.version}")
self.get_serial_number()
log.info(f"Serial number: {self.serial_number}")

self.sysex(SysExCommands.ENTER_CALIBRATION)

Expand Down

0 comments on commit ae20f2f

Please sign in to comment.