Если закомментировать строки ( выделенные жирным). Компиляция проходит. Только скетч не работает. Не запоминает установки. Значит проблемы с библиотекой 1602 RUS. POS библиотека не понимает.
#if ENABLE_MODE_BOTTLING
case MODE_BOTTLING:
if (bottlingStepLimit == 0) {
lcd.print(F("Bottling volume "));
lcd.setCursor(0, 1);
if(bottlingVolume>9999) {
//pos += lcd.print(0.001*bottlingVolume);//****************
//pos += lcd.print(F(" L"));//*******************************
//} else {//*******************************************
// pos += lcd.print(bottlingVolume);
// pos += lcd.print(F(" ml"));
//}******************************************************
while (pos++ < 16) lcd.write(32);
}
//else {
const int progress = int(17.0*stepCounter / bottlingStepLimit);
lcd.print(F("Pumping water "));
(bottlingVolume > 0) ? lcd.print(F("+ ")) : lcd.print(F("- "));
lcd.setCursor(0, 1);
while (pos++ < progress) lcd.write(255);
while (pos++ < 16) lcd.write(32);
//DEBUG_PRINT("Target RPM = ");
//DEBUG_PRINT(targetRpm);
//DEBUG_PRINT(", current RPM = ");
//DEBUG_PRINTLN(currentRpm);
}
return;
#endif
#if ENABLE_EXTERNAL_CONTROL
case MODE_EXT_CONTROL:
lcd.print(F("External control"));
lcd.setCursor(0, 1);
if (extControlDisabledFlag) {
sprintf(buffer, "Stopped (%d%%)", int(extPwmDutyCycle * 100));
} else {
const int clph = round(currentRpm * revolution2millilitreCw * 0.6); // 60 / 1000 * 10
sprintf(buffer, "%d.%1d l/h (%d%%)", clph / 10, abs(clph % 10), int(extPwmDutyCycle * 100));
}
// pos = lcd.print(buffer); // *************************************************************************************
while (pos++ < 16) lcd.write(32);