udpate mode switch logic

This commit is contained in:
Steven Dan
2026-05-15 12:37:36 +08:00
parent 9e5ff852d1
commit 46c7252df4
3 changed files with 16 additions and 8 deletions

View File

@@ -170,17 +170,16 @@ void switch_mode_by_c1_mode(unsigned c1_mode, unsigned force_reboot)
#endif
break;
case 2:
#if !BYPASS_UAC2
#if !BR_UAC2
SetRoleSwitchFlag(MODE_BR_UAC2);
reboot_need = 1;
#endif
break;
case 3:
#if !BYPASS_UAC2
#if !V71_UAC2
SetRoleSwitchFlag(MODE_V71_UAC2);
reboot_need = 1;
#endif
reboot_need = 1;
break;
case 4:
#if !FPS_UAC2

View File

@@ -170,17 +170,16 @@ void switch_mode_by_c1_mode(unsigned c1_mode, unsigned force_reboot)
#endif
break;
case 2:
#if !BYPASS_UAC2
#if !BR_UAC2
SetRoleSwitchFlag(MODE_BR_UAC2);
reboot_need = 1;
#endif
break;
case 3:
#if !BYPASS_UAC2
#if !V71_UAC2
SetRoleSwitchFlag(MODE_V71_UAC2);
reboot_need = 1;
#endif
reboot_need = 1;
break;
case 4:
#if !FPS_UAC2

View File

@@ -179,24 +179,34 @@ void switch_mode_by_c1_mode(unsigned c1_mode, unsigned force_reboot)
switch (c1_mode)
{
case 1:
SetRoleSwitchFlag(MODE_FPS_UAC2);
reboot_need = 0;
#if !BYPASS_UAC2
SetRoleSwitchFlag(MODE_BYPASS_UAC2);
reboot_need = 1;
#endif
break;
case 2:
#if !BR_UAC2
SetRoleSwitchFlag(MODE_BR_UAC2);
reboot_need = 1;
#endif
break;
case 3:
#if !V71_UAC2
SetRoleSwitchFlag(MODE_V71_UAC2);
reboot_need = 1;
#endif
break;
case 4:
#if !FPS_UAC2
SetRoleSwitchFlag(MODE_FPS_UAC2);
reboot_need = 1;
#endif
break;
case 5:
#if !FPS_UAC2
SetRoleSwitchFlag(MODE_FPS_UAC2);
reboot_need = 0;
#endif
break;
}
#else