修改:信号包独立发包,周期100ms;

布局切换按键,增加开机读取电平状态
This commit is contained in:
xu
2026-09-16 17:00:58 +08:00
parent 3b1e7a7082
commit 8dd17a5b9a
9 changed files with 159 additions and 104 deletions
+2 -2
View File
@@ -99,7 +99,7 @@ int main(int argc, char **argv)
else if(switch_video == 2 && switch_video_pre==2) /* 右屏通道1全屏 */
{ if(switch_mode[3] == 0x55){
printf("+++++++++++++++++++++++++22 time out\n");
sprintf(buf_kill_rtsp,"./kill_rtsp.sh %d",2);
sprintf(buf_kill_rtsp,"./kill_rtsp.sh %d",3);
system(buf_kill_rtsp);
sprintf(buf,"./start_rtsp.sh %d",3);
system(buf);
@@ -118,7 +118,7 @@ int main(int argc, char **argv)
else if(switch_video == 4 && switch_video_pre==4) /* 右放大左隐藏 */
{ if(switch_mode[3] == 0x55){
printf("+++++++++++++++++++++++++44 time out\n");
sprintf(buf_kill_rtsp,"./kill_rtsp.sh %d",2);
sprintf(buf_kill_rtsp,"./kill_rtsp.sh %d",3);
system(buf_kill_rtsp);
sprintf(buf,"./start_rtsp.sh %d",5);
system(buf);