Browse Source

Remove redundant code.

Marek Bel 5 years ago
parent
commit
92ff284f82
1 changed files with 0 additions and 1 deletions
  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;