Fixed removal of price config row

This commit is contained in:
Gunnar Skjold
2024-04-04 14:56:55 +02:00
parent e366f10632
commit 15c3b2067c
3 changed files with 8 additions and 0 deletions

View File

@@ -533,6 +533,12 @@ void PriceService::setPriceConfig(uint8_t index, PriceConfig &priceConfig) {
this->priceConfig.push_back(priceConfig);
}
void PriceService::cropPriceConfig(uint8_t size) {
this->priceConfig.resize(size);
this->priceConfig.shrink_to_fit();
}
bool PriceService::save() {
if(!LittleFS.begin()) {
if(debugger->isActive(RemoteDebug::ERROR)) debugger->printf_P(PSTR("(PriceService) Unable to load LittleFS\n"));