소스 검색

fix small mistake

Alex Voinea 5 년 전
부모
커밋
755230e2e7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Firmware/heatbed_pwm.cpp

+ 1 - 1
Firmware/heatbed_pwm.cpp

@@ -95,7 +95,7 @@ ISR(TIMER0_OVF_vect)          // timer compare interrupt service routine
 {
 	switch(state){
 	case States::ZERO_START:
-		if (bedPWMDisabled) break;
+		if (bedPWMDisabled) return;
 		pwm = soft_pwm_bed << 1;// expecting soft_pwm_bed to be 7bit!
 		if( pwm != 0 ){
 			state = States::ZERO;     // do nothing, let it tick once again after the 30Hz period