Skip to content

Commit

Permalink
Cherry-picked from master.
Browse files Browse the repository at this point in the history
  • Loading branch information
dl1ycf committed Aug 21, 2024
1 parent b2d3613 commit f618709
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions src/radio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,8 @@ void radio_start_radio() {

for (int id = 0; id < MAX_SERIAL; id++) {
//
// Apply some default values
// Apply some default values. The name ttyACMx is suitable for
// USB-serial adapters on Linux
//
SerialPorts[id].enable = 0;
SerialPorts[id].andromeda = 0;
Expand All @@ -1052,17 +1053,15 @@ void radio_start_radio() {
snprintf(SerialPorts[id].port, sizeof(SerialPorts[id].port), "/dev/ttyACM%d", id);
}
//
// If the controller is G2_V2, enable first serial port for the
// built-in ANDROMEDA-type panel on /dev/ttyAMA3. This will not be done
// if compiled without GPIO support but then you can fill in by hand
// in the rigctl menu.
// If the controller is G2_V2, enable last serial port for the
// built-in ANDROMEDA-type panel on /dev/ttyAMA1.
//
if (controller == G2_V2) {
SerialPorts[MAX_SERIAL-1].enable = 1;
SerialPorts[MAX_SERIAL-1].andromeda = 1;
SerialPorts[MAX_SERIAL-1].baud = B9600;
SerialPorts[MAX_SERIAL-1].autoreporting = 0;
snprintf(SerialPorts[MAX_SERIAL-1].port, sizeof(SerialPorts[MAX_SERIAL-1].port), "/dev/ttyAMA3");
snprintf(SerialPorts[MAX_SERIAL-1].port, sizeof(SerialPorts[MAX_SERIAL-1].port), "/dev/ttyAMA1");
}

protocol = radio->protocol;
Expand Down
4 changes: 2 additions & 2 deletions src/rigctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3262,7 +3262,7 @@ gboolean parse_extended_cmd (const char *command, CLIENT *client) {
steps *= andromeda_vfo_speedup[31];
}

vfo_id_step(active_receiver->id, -steps);
schedule_action(VFO, RELATIVE, -steps);
}

break;
Expand Down Expand Up @@ -4101,7 +4101,7 @@ gboolean parse_extended_cmd (const char *command, CLIENT *client) {
steps *= andromeda_vfo_speedup[31];
}

vfo_id_step(active_receiver->id, steps);
schedule_action(VFO, RELATIVE, steps);
}

break;
Expand Down

0 comments on commit f618709

Please sign in to comment.