@@ -12,14 +12,9 @@ General Public License for more details.
1212
1313You should have received a copy of the GNU General Public License along with
1414this program. If not, see <http://www.gnu.org/licenses/>.
15-
16-
17- _______________________________________________________________________________
1815*/
1916
20-
2117#include < avr/io.h>
22- #include < avr/interrupt.h>
2318#include < limits>
2419#include " ArCOM.h" // Import serial communication wrapper
2520#include " EEstore.h" // Import EEstore library
@@ -77,6 +72,7 @@ void setup()
7772 wrapper->setIOresistor (p.IOresistor ,sizeof (p.IOresistor ));
7873 wrapper->setIOmode (p.IOmode ,sizeof (p.IOmode ));
7974 wrapper->setChopper (p.chopper );
75+ wrapper->RMS (p.rms_current );
8076
8177 StepperWrapper::blinkenlights (); // Indicate successful start-up
8278}
@@ -245,9 +241,7 @@ void loop()
245241}
246242
247243void throwError () {
248- // Placeholder for proper error handler
249- DEBUG_PRINT (" Error " );
250- DEBUG_PRINTLN (errorID);
244+ // TODO: Implement proper error handler
251245 Serial1COM.writeByte (1 );
252246}
253247
@@ -258,7 +252,7 @@ void returnModuleInfo() {
258252 Serial1COM.writeCharArray (moduleName, sizeof (moduleName) - 1 ); // Module name
259253 Serial1COM.writeByte (1 ); // 1 if more info follows, 0 if not
260254 Serial1COM.writeByte (' #' ); // Op code for: Number of behavior events this module can generate
261- Serial1COM.writeByte (3 ); // 3 states ("Start", "Stop" and "Limit")
255+ Serial1COM.writeByte (nEventNames);
262256 Serial1COM.writeByte (1 ); // 1 if more info follows, 0 if not
263257 Serial1COM.writeByte (' E' ); // Op code for: Behavior event names
264258 Serial1COM.writeByte (nEventNames);
0 commit comments