Skip to content

Commit 6068840

Browse files
committed
b2b enum fix
1 parent e1203dc commit 6068840

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

MIDAS/src/b2b_interface.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ void CameraB2B::vtx_toggle() {
4545
void CameraB2B::camera_on(int cam_index) {
4646
switch (cam_index) {
4747
case 0:
48-
transmit_command(CameraCommand::CAMERA0_ON);
48+
transmit_command(CameraCommand::CAMERA1_ON);
4949
cam_state_[0] = true;
5050
break;
5151
case 1:
52-
transmit_command(CameraCommand::CAMERA1_ON);
52+
transmit_command(CameraCommand::CAMERA2_ON);
5353
cam_state_[1] = true;
5454
break;
5555
default:
@@ -62,11 +62,11 @@ void CameraB2B::camera_on(int cam_index) {
6262
void CameraB2B::camera_off(int cam_index) {
6363
switch (cam_index) {
6464
case 0:
65-
transmit_command(CameraCommand::CAMERA0_OFF);
65+
transmit_command(CameraCommand::CAMERA1_OFF);
6666
cam_state_[0] = false;
6767
break;
6868
case 1:
69-
transmit_command(CameraCommand::CAMERA1_OFF);
69+
transmit_command(CameraCommand::CAMERA2_OFF);
7070
cam_state_[1] = false;
7171
break;
7272
default:

MIDAS/src/b2b_interface.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616

1717

1818
enum class CameraCommand {
19-
CAMERA0_OFF = 0,
20-
CAMERA0_ON = 1,
21-
CAMERA1_OFF = 2,
22-
CAMERA1_ON = 3,
19+
CAMERA1_OFF = 0,
20+
CAMERA1_ON = 1,
21+
CAMERA2_OFF = 2,
22+
CAMERA2_ON = 3,
2323
VTX_OFF = 4,
2424
VTX_ON = 5,
25-
MUX_0 = 6,
26-
MUX_1 = 7
25+
MUX_1 = 6,
26+
MUX_2 = 7
2727
};
2828

2929
struct CameraB2B {

0 commit comments

Comments
 (0)