mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-03-06 11:33:38 +00:00
Fixed removal of price config row
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user