소스 검색

Remove redundant code.

Marek Bel 5 년 전
부모
커밋
92ff284f82
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      Firmware/AutoDeplete.cpp

+ 0 - 1
Firmware/AutoDeplete.cpp

@@ -56,7 +56,6 @@ void ad_markLoaded(uint8_t filament)
 uint8_t ad_getAlternative(uint8_t filament)
 {
     assert(filament < filamentCount);
-    if (ad_allDepleted()) return filament;
     for (uint8_t i = 0; i<filamentCount; ++i)
     {
         uint8_t nextFilament = (filament + i) % filamentCount;