Skip to content

Commit

Permalink
fix compilation on espressif8266
Browse files Browse the repository at this point in the history
  • Loading branch information
matth-x committed Oct 22, 2023
1 parent eed22a0 commit f4cc612
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/platformless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
- name: Get ArduinoJson
run: wget -Uri https://github.com/bblanchon/ArduinoJson/releases/download/v6.19.4/ArduinoJson-v6.19.4.h -O ./src/ArduinoJson.h
- name: Compile
run: g++ -c -std=c++11 -I ./src $(find ./src -type f -iregex ".*\.cpp") -DMO_PLATFORM=MO_PLATFORM_NONE -Wall -Wextra -Wno-unused-parameter -Werror
run: g++ -c -std=c++11 -I ./src $(find ./src -type f -iregex ".*\.cpp") -DMO_PLATFORM=MO_PLATFORM_NONE -Wall -Wextra -Wno-unused-parameter -Wno-redundant-move -Werror
2 changes: 1 addition & 1 deletion src/MicroOcpp/Model/Metering/MeteringConnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ std::unique_ptr<Operation> MeteringConnector::loop() {
if ((txBreak || meterData.size() >= (size_t) meterValueCacheSizeInt->getInt()) && !meterData.empty()) {
auto meterValues = std::unique_ptr<MeterValues>(new MeterValues(std::move(meterData), connectorId, transaction));
meterData.clear();
return meterValues;
return std::move(meterValues);
}

if (model.getConnector(connectorId)) {
Expand Down

0 comments on commit f4cc612

Please sign in to comment.