Remove redundant code.

This commit is contained in:
Marek Bel 2019-01-04 19:35:33 +01:00
parent 360a977520
commit 92ff284f82

View File

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