Skip to content

Commit

Permalink
Check for zero amplitude when updating step size
Browse files Browse the repository at this point in the history
  • Loading branch information
bparks13 committed Oct 22, 2024
1 parent 93b4d8d commit 8378523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenEphys.Onix1.Design/Rhs2116StimulusSequenceDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ private bool UpdateStepSizeFromAmplitude(double amplitude)
MessageBox.Show("Warning: Amplitude cannot be a negative value.", InvalidAmplitudeString);
return false;
}
else if (amplitude < MinAmplitudeuA && amplitude > 0)
else if (amplitude < MinAmplitudeuA && amplitude >= 0)
{
MessageBox.Show($"Amplitude is too small to be resolved. Amplitude must be greater than or equal to {MinAmplitudeuA} µA.", InvalidAmplitudeString);
return false;
Expand Down

0 comments on commit 8378523

Please sign in to comment.