Skip to content

Commit

Permalink
Move serial include
Browse files Browse the repository at this point in the history
  • Loading branch information
TixoRebel committed May 1, 2019
1 parent 05eb95a commit 127caed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/api.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
#include "pros/motors.h"
#include "pros/rtos.h"
#include "pros/vision.h"
#include "pros/serial.h"

#ifdef __cplusplus
#include "pros/adi.hpp"
Expand All @@ -63,7 +62,6 @@
#include "pros/motors.hpp"
#include "pros/rtos.hpp"
#include "pros/vision.hpp"
#include "pros/serial.hpp"
#endif

#endif // _PROS_API_H_
2 changes: 2 additions & 0 deletions include/pros/apix.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
#pragma GCC diagnostic ignored "-Wall"
#include "display/lvgl.h"
#pragma GCC diagnostic pop
#include "pros/serial.h"

#ifdef __cplusplus
#include "pros/serial.hpp"
namespace pros::c {
extern "C" {
#endif
Expand Down
1 change: 1 addition & 0 deletions src/tests/generic_serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
#include "main.h"
#include <stdarg.h>
#include "pros/apix.h"

pros::Serial *serial_w = nullptr, *serial_r = nullptr;

Expand Down

0 comments on commit 127caed

Please sign in to comment.