File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -45,11 +45,11 @@ void CameraB2B::vtx_toggle() {
4545void 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) {
6262void 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 :
Original file line number Diff line number Diff line change 1616
1717
1818enum 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
2929struct CameraB2B {
You can’t perform that action at this time.
0 commit comments