|
@@ -25,7 +25,7 @@ struct button_state_t button_state = {1,1,1,1,1,1,1};
|
|
|
//static rt_uint8_t MenuItem__=0; //µ±Ç°²Ëµ¥ÖµÐòºÅ
|
|
|
|
|
|
extern unsigned char iscowweight;
|
|
|
-
|
|
|
+extern uint8_t isnewBan;
|
|
|
void sendshowCC(void)
|
|
|
{
|
|
|
XbeeConst_FRemoteTxBuf[0] = 7;
|
|
@@ -69,7 +69,7 @@ static void CheckMenuButton_entry(void *parameter) {
|
|
|
if (button_state.b4>=5) button_state.b4 = 0;
|
|
|
if (button_state.b5>=5) button_state.b5 = 0;
|
|
|
if (button_state.b7>=15) button_state.b7 = 0;
|
|
|
-// if (WeightConst_SBType == 3 && isnewBan==1)
|
|
|
+ if (WeightConst_SBType == 3 && isnewBan==1)
|
|
|
{
|
|
|
if (HAL_GPIO_ReadPin(pwr_GPIO_Port, pwr_Pin) == 0) {
|
|
|
rt_thread_mdelay(2000);
|
|
@@ -439,7 +439,7 @@ void thread_beep_init(void)
|
|
|
rt_thread_startup(tid_beep);
|
|
|
}
|
|
|
|
|
|
-extern uint8_t isnewBan;
|
|
|
+
|
|
|
static unsigned int button4_press=0;
|
|
|
static unsigned int button4_press_=0;
|
|
|
static void CheckButton_entry(void *parameter) {
|
|
@@ -467,8 +467,8 @@ static void CheckButton_entry(void *parameter) {
|
|
|
if (button_state.b4>=5) button_state.b4 = 0;
|
|
|
|
|
|
if (button_state.b7>=15) button_state.b7 = 0;
|
|
|
- if //(WeightConst_SBType == 3 &&
|
|
|
- (isnewBan==1)
|
|
|
+ if (WeightConst_SBType == 3 &&
|
|
|
+ isnewBan==1)
|
|
|
{
|
|
|
if ((HAL_GPIO_ReadPin(pwr_GPIO_Port, pwr_Pin) == 0) ) {
|
|
|
rt_thread_mdelay(2000);
|