main.c : since the new chip is active low, toggled B10 timercontrol output pin in system_bjt_output

This commit is contained in:
Charlez Kwan 2020-09-05 16:38:51 +02:00
parent aeadab7d5c
commit 20ed200486

View file

@ -582,9 +582,9 @@ void Paint_Selector(bool heartbeat,uint8_t pos, uint8_t runningmode){
void System_bjt_output(bool on){
if(on){
HAL_GPIO_WritePin(GPIOB,GPIO_PIN_10,GPIO_PIN_SET);
}else{
HAL_GPIO_WritePin(GPIOB,GPIO_PIN_10,GPIO_PIN_RESET);
}else{
HAL_GPIO_WritePin(GPIOB,GPIO_PIN_10,GPIO_PIN_SET);
}
}