Skip to content

Commit

Permalink
database: use explicit scope for read/update to avoid linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
paradajz committed Feb 21, 2024
1 parent 263a5b0 commit 3ba9f76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/firmware/application/database/Database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,9 @@ uint16_t database::Admin::readSystemBlock(size_t index)
uint16_t value = 0;

SYSTEM_BLOCK_ENTER(
value = read(0,
static_cast<uint8_t>(Config::Section::system_t::SYSTEM_SETTINGS),
index);)
value = LESSDB::read(0,
static_cast<uint8_t>(Config::Section::system_t::SYSTEM_SETTINGS),
index);)

return value;
}
Expand All @@ -417,7 +417,7 @@ bool database::Admin::updateSystemBlock(size_t index, uint16_t value)
bool retVal = false;

SYSTEM_BLOCK_ENTER(
retVal = update(0, static_cast<uint8_t>(Config::Section::system_t::SYSTEM_SETTINGS), index, value);)
retVal = LESSDB::update(0, static_cast<uint8_t>(Config::Section::system_t::SYSTEM_SETTINGS), index, value);)

return retVal;
}
Expand Down

0 comments on commit 3ba9f76

Please sign in to comment.