Skip to content

Commit

Permalink
Fix broken usb device issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachGarcia42 committed Mar 31, 2024
1 parent 771f4fe commit bfff524
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ add_compile_options(
-Wno-unused-function
)

add_definitions(-DVERBOSE -DDEBUG)
# add_definitions(-DVERBOSE -DDEBUG)

# Add source files from src/
set(SOURCES
Expand Down
7 changes: 6 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/

// Uncomment if you want debug information about signal strength and motor movements
#define DEBUG
// #define DEBUG

// #include <Stepper.h>
// #include <Servo.h>
Expand All @@ -23,6 +23,7 @@
#include "data.hpp"
#include "formulas.hpp"
#include "pico/stdlib.h"
#include "tusb.h"
#include "pins.hpp"
#include "rfm/pico_hal.h"
#include "stepper.h"
Expand Down Expand Up @@ -72,6 +73,10 @@ uint8_t speed = 60;
int main() {
stdio_init_all();

while (!tud_cdc_connected()) {
sleep_ms(500);
}

// Initialize servo
servo_init();
servo_clock_auto();
Expand Down

0 comments on commit bfff524

Please sign in to comment.