Skip to content

Commit

Permalink
Bug Fix: Error message introduced an error
Browse files Browse the repository at this point in the history
Error message used wrong quotation styles and caused an error that crashes the control script.
  • Loading branch information
nebhead committed Oct 15, 2024
1 parent c99d483 commit 5b293b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion probes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ def _voltage_to_temp(self, voltage, probe_profile, port=None):
tempF = 0.0
tempC = 0.0
Tr = 0
error_event = f'An error occurred reading the voltage from device: {self.device_info['device']}, port: {port}. The voltage read {(voltage / 1000):,.2f}V ({voltage}mV) ' \
error_event = f'An error occurred reading the voltage from device: {self.device_info["device"]}, ' \
f'port: {port}. The voltage read {(voltage / 1000):,.2f}V ({voltage}mV) ' \
f'was outside the expected range of 0mV to {probe_profile["Vs"]}V. This usually means that ' \
f'the voltage reference is set too low in the probe device configuration. To fix this issue, ' \
f'please set the voltage reference to a value greater than {(voltage / 1000):,.2f}V in the configuration wizard.'
Expand Down

0 comments on commit 5b293b2

Please sign in to comment.