fix:修复菜单上下键反了的问题

feat:增加cross处理开关
This commit is contained in:
2024-08-13 21:47:30 +08:00
parent 2db1937c89
commit 8b94eb2eff
6 changed files with 14 additions and 12 deletions

View File

@@ -6,17 +6,17 @@ bool far_Lpt0_found, far_Lpt1_found;
int32_t Both_Boder_None_Cross;
int far_Lpt0_rpts0s_id, far_Lpt1_rpts1s_id;
int cross_easy = 0;
int cross_open = 1;
float cross_open = 1;
void CheckCross()
{
bool Xfound = Lpt0_found && Lpt1_found;
if (cross_open == 0) {
if ((int)cross_open == 0) {
if (cross_type == CROSS_NONE && Xfound) {
cross_type = CROSS_BEGIN;
}
}
if (cross_open == 1) {
if ((int)cross_open == 1) {
if (cross_type == CROSS_NONE && Xfound && cross_easy == 0) {
cross_type = CROSS_BEGIN;
}