X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=ROM2%2Fmotors.h;h=a18e4b2e6b13bd4d55c04a62301f4e43f8f3197d;hb=f454d8fbc15ff6516ba574e23692e8a65b9f16fd;hp=5598bec21825e2332a9f0ca840aa1feafd3681f1;hpb=c99662693a4d79f65d406473647debbd33ec521e;p=uccvend-snackrom.git diff --git a/ROM2/motors.h b/ROM2/motors.h index 5598bec..a18e4b2 100644 --- a/ROM2/motors.h +++ b/ROM2/motors.h @@ -4,8 +4,11 @@ #include "vend.h" /* error codes for dispense_motor */ -#define MOTOR_SUCCESS 0 -#define MOTOR_NOSLOT 1 +#define MOTOR_SUCCESS 0 +#define MOTOR_NOSLOT 1 +#define MOTOR_HOME_FAIL 2 +#define MOTOR_CURRENT_FAIL 3 +#define MOTOR_VOLTAGE_FAIL 4 const u8 motor_lookup[80] = { 1,12,23,34,46,57,68,79, @@ -23,6 +26,5 @@ const u8 motor_lookup[80] = bool is_motor(u8 slot); u8 dispense_motor(u8 slot); -void scan_motors(); #endif /* _MOTORS_H_ */