Skip to content

Commit

Permalink
adjusted serial port name
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanLut committed Jan 20, 2025
1 parent 8649aee commit 99977df
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gs/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#include "avi.h"
#include "jpeg_parser.h"

#include "utils.h"

#ifdef TEST_LATENCY
extern "C"
{
Expand Down Expand Up @@ -234,7 +236,7 @@ Video_Decoder s_decoder;

#ifdef USE_MAVLINK
int fdUART = -1;
std::string serialPortName = "/dev/serial0";
std::string serialPortName = isRadxaZero3() ? "/dev/ttyS1" : "/dev/serial0";
#endif

/* This prints an "Assertion failed" message and aborts. */
Expand Down Expand Up @@ -2452,7 +2454,9 @@ int main(int argc, const char* argv[])
printf("-vsync <1/0>, default: 1\n");
printf("-sm <1/0>, skip setting monitor mode with pcap, default: 1\n");
#ifdef USE_MAVLINK
printf("-serial <serial_port>, serial port for telemetry, default: /dev/serial0\n");
printf("-serial <serial_port>, serial port for telemetry, default: ");
printf(serialPortName.c_str());
printf("\n");
#endif
printf("-help\n");
return 0;
Expand Down

0 comments on commit 99977df

Please sign in to comment.