mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2026-04-06 15:05:53 +00:00
add const ref
This commit is contained in:
parent
2d6a6453a7
commit
ac77bfb3b9
2 changed files with 4 additions and 4 deletions
|
|
@ -6,7 +6,7 @@ BoardConfig::BoardConfig(String name, BoardType type, uint8_t oledsda, uint8_t o
|
|||
: Name(name), Type(type), OledSda(oledsda), OledScl(oledscl), OledAddr(oledaddr), OledReset(oledreset), LoraSck(lorasck), LoraMiso(loramiso), LoraMosi(loramosi), LoraCS(loracs), LoraReset(lorareset), LoraIRQ(lorairq), needCheckPowerChip(needcheckpowerchip), powerCheckStatus(powercheckstatus) {
|
||||
}
|
||||
|
||||
BoardFinder::BoardFinder(std::list<BoardConfig const *> boardConfigs) : _boardConfigs(boardConfigs) {
|
||||
BoardFinder::BoardFinder(const std::list<BoardConfig const *> &boardConfigs) : _boardConfigs(boardConfigs) {
|
||||
}
|
||||
|
||||
BoardConfig const *BoardFinder::searchBoardConfig() {
|
||||
|
|
@ -51,7 +51,7 @@ BoardConfig const *BoardFinder::searchBoardConfig() {
|
|||
}
|
||||
|
||||
BoardConfig const *BoardFinder::getBoardConfig(String name) {
|
||||
std::_List_iterator<BoardConfig const *> elem = std::find_if(_boardConfigs.begin(), _boardConfigs.end(), [&](BoardConfig const *conf) {
|
||||
std::_List_const_iterator<BoardConfig const *> elem = std::find_if(_boardConfigs.begin(), _boardConfigs.end(), [&](BoardConfig const *conf) {
|
||||
return conf->Name == name;
|
||||
});
|
||||
if (elem == _boardConfigs.end()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue