V2.12 sn为0时如果未写流水号则报错
This commit is contained in:
@@ -24,7 +24,7 @@ void CtrlGpio_DefInit(void)
|
||||
GPIO_ResetBits(GPIOA,GPIO_InitStructure.GPIO_Pin);
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = SEG0_Pin;
|
||||
//GPIO_InitStructure.GPIO_Mode=GPIO_Mode_IN_FLOATING;
|
||||
// GPIO_InitStructure.GPIO_Mode=GPIO_Mode_IN_FLOATING;
|
||||
GPIO_InitStructure.GPIO_Mode=GPIO_Mode_IPD;
|
||||
GPIO_Init(GPIOA,&GPIO_InitStructure);
|
||||
|
||||
@@ -91,7 +91,7 @@ uint8_t Gpio_GetDeivceAddr(void)
|
||||
ul_addr |= ((PCin(SEG1_Pin_Nu) & 0x01) <<1);
|
||||
ul_addr |= (PAin(SEG0_Pin_Nu) & 0x01);
|
||||
return ul_addr;
|
||||
// return 1;
|
||||
// return 7;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user