AP_HAL: enumeration format fixes

This commit is contained in:
Peter Barker 2023-01-24 15:29:27 +11:00 committed by Andrew Tridgell
parent 8a20820a41
commit a2444d1df3
2 changed files with 6 additions and 2 deletions

View File

@ -89,7 +89,9 @@ public:
};
enum flow_control {
FLOW_CONTROL_DISABLE=0, FLOW_CONTROL_ENABLE=1, FLOW_CONTROL_AUTO=2
FLOW_CONTROL_DISABLE=0,
FLOW_CONTROL_ENABLE=1,
FLOW_CONTROL_AUTO=2,
};
virtual void set_flow_control(enum flow_control flow_control_setting) {};
virtual enum flow_control get_flow_control(void) { return FLOW_CONTROL_DISABLE; }

View File

@ -49,7 +49,9 @@ public:
virtual bool run_debug_shell(AP_HAL::BetterStream *stream) = 0;
enum safety_state : uint8_t {
SAFETY_NONE, SAFETY_DISARMED, SAFETY_ARMED
SAFETY_NONE,
SAFETY_DISARMED,
SAFETY_ARMED,
};
/*