From f1116ffba4f5a444e09f24d68b0e118f49ddb922 Mon Sep 17 00:00:00 2001 From: SteveT Date: Wed, 6 Jan 2021 16:27:14 -0500 Subject: [PATCH] send milliAmps and meter setup for new JMRI Meter function --- DCCWaveform.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DCCWaveform.h b/DCCWaveform.h index f8b2536..3755979 100644 --- a/DCCWaveform.h +++ b/DCCWaveform.h @@ -63,13 +63,13 @@ class DCCWaveform { return 0; } inline int getCurrentmA() { - if (powerMode == POWERMODE::ON) - return motorDriver->raw2mA(lastCurrent); - return 0; + if (powerMode == POWERMODE::ON) + return motorDriver->raw2mA(lastCurrent); + return 0; } inline int getMaxmA() { if (maxmA == 0) { //only calculate this for first request, it doesn't change - maxmA = motorDriver->raw2mA(motorDriver->getRawCurrentTripValue()); + maxmA = motorDriver->raw2mA(motorDriver->getRawCurrentTripValue()); } return maxmA; }