Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Jun 13, 2021
1 parent cc724a9 commit 79029fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eez/modules/psu/dlog_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ float roundValueOnXAxis(Recording &recording, float value) {

float roundValueOnYAxis(Recording &recording, int yAxisIndex, float value) {
float prec;
if (value < 1E-5f) {
if (fabs(value) < 1E-5f) {
prec = 1E-5f;
} else {
prec = powf(10.0f, floorf(log10f(fabs(value)))) / 1000.0f;
Expand Down Expand Up @@ -2453,7 +2453,7 @@ void guessStepValues(StepValues *stepValues, Unit unit) {
stepValues->values = values;
stepValues->count = sizeof(values) / sizeof(float);
} else if (unit == UNIT_AMPER) {
static float values[] = { 0.00001f, 0.0001f, 0.001f, 0.01f, 0.1f };
static float values[] = { 0.0001f, 0.001f, 0.01f, 0.1f };
stepValues->values = values;
stepValues->count = sizeof(values) / sizeof(float);
} else if (unit == UNIT_WATT) {
Expand Down

0 comments on commit 79029fd

Please sign in to comment.