From 52321d4c7f1662012e716f946588a420f5a3c203 Mon Sep 17 00:00:00 2001 From: NightIsDark <935528249@qq.ocm> Date: Mon, 30 Nov 2020 15:35:10 +0800 Subject: [PATCH] para check bug fix --- calc_gate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calc_gate.c b/calc_gate.c index 066e62a..cfe9890 100644 --- a/calc_gate.c +++ b/calc_gate.c @@ -80,10 +80,10 @@ const coefficient_infor coefficient={ */ int data_validity_check(struct param_gate *param) { - if(param->wingwall wingwall>parallel_wingwall){ + if(param->wingwall >=warped_wingwall || param->wingwall<=parallel_wingwall){ return -1; } - if(!(param->drop_step = 0 || param->drop_step >1)){ + if(!(param->drop_step = 0 || param->drop_step =1)){ return -1; } if(param->openning_height_of_gate <-0.0000001){ -- libgit2 0.21.4