Skip to content

Commit

Permalink
refactor vtx handling
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Dec 11, 2024
1 parent b5be4ea commit 18d691f
Show file tree
Hide file tree
Showing 14 changed files with 659 additions and 959 deletions.
2 changes: 1 addition & 1 deletion src/driver/vtx/vtx.c → src/driver/vtx.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "driver/vtx/vtx.h"
#include "driver/vtx.h"

#include "core/debug.h"
#include "driver/serial.h"
Expand Down
11 changes: 5 additions & 6 deletions src/driver/vtx/vtx.h → src/driver/vtx.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
#include <stdbool.h>
#include <stdint.h>

typedef enum {
VTX_ERROR,
VTX_IDLE,
VTX_WAIT,
VTX_SUCCESS
} vtx_update_result_t;
extern uint32_t vtx_last_valid_read;
extern uint32_t vtx_last_request;

extern uint8_t vtx_payload[32];
extern uint8_t vtx_payload_offset;

bool serial_vtx_is_ready();
bool serial_vtx_wait_for_ready();
Expand Down
158 changes: 0 additions & 158 deletions src/driver/vtx/msp.c

This file was deleted.

8 changes: 0 additions & 8 deletions src/driver/vtx/msp.h

This file was deleted.

Loading

0 comments on commit 18d691f

Please sign in to comment.