Skip to content

Commit

Permalink
Fix a couple enum/struct issues
Browse files Browse the repository at this point in the history
  • Loading branch information
WillXuCodes authored and ion098 committed Jul 16, 2024
1 parent 89bca10 commit d02e0c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion include/pros/abstract_motor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace pros {
inline namespace v5 {

/**
* \enum motor_brake
* \enum MotorBrake
* Indicates the current 'brake mode' of a motor.
*/
enum class MotorBrake {
Expand Down
15 changes: 5 additions & 10 deletions include/pros/screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,11 @@ typedef enum {
* Struct representing screen touch status, screen last x, screen last y, press count, release count.
*/
typedef struct screen_touch_status_s {
/// Represents if the screen is being held, released, or pressed.
last_touch_e_t touch_status;
/// Represents the x value of the location of the touch.
int16_t x;
/// Represents the y value of the location of the touch.
int16_t y;
/// Represents how many times the screen has be pressed.
int32_t press_count;
/// Represents how many times the user released after a touch on the screen.
int32_t release_count;
last_touch_e_t touch_status; ///< Represents if the screen is being held, released, or pressed.
int16_t x; ///< Represents the x value of the location of the touch.
int16_t y; ///< Represents the y value of the location of the touch.
int32_t press_count; ///< Represents how many times the screen has be pressed.
int32_t release_count; ///< Represents how many times the user released after a touch on the screen.
} screen_touch_status_s_t;

#ifdef PROS_USE_SIMPLE_NAMES
Expand Down

0 comments on commit d02e0c6

Please sign in to comment.