Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor cosmetic #115

Merged
merged 5 commits into from
Mar 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions include/schedule.hpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#pragma once

#include <Datatypes.h>
#include <EbusHandler.h>
#include <WiFiClient.h>

#include <deque>
#include <string>
#include <vector>

#include "Datatypes.h"
#include "EbusHandler.h"
#include "store.hpp"

// This class sends time-controlled active commands to the ebus. All valid
Expand Down Expand Up @@ -61,7 +61,7 @@ class Schedule {

static void errorCallback(const std::string &str);

void processActive(const std::vector<uint8_t>(master),
void processActive(const std::vector<uint8_t> &master,
const std::vector<uint8_t> &slave);
void processPassive(const std::vector<uint8_t> &master,
const std::vector<uint8_t> &slave);
Expand Down
4 changes: 2 additions & 2 deletions include/store.hpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#pragma once

#include <Datatypes.h>

#include <deque>
#include <string>
#include <vector>

#include "Datatypes.h"

// Implements the storage of active and passive commands. New commands can be
// added and removed via mqtt. It provides functions for saving, loading and
// deleting commands in the nvs memory. Commands stored in the nvs are loaded at
Expand Down
2 changes: 1 addition & 1 deletion src/schedule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ void Schedule::errorCallback(const std::string &str) {
mqttClient.publish(topic.c_str(), 0, false, payload.c_str());
}

void Schedule::processActive(const std::vector<uint8_t>(master),
void Schedule::processActive(const std::vector<uint8_t> &master,
const std::vector<uint8_t> &slave) {
if (send)
publishSend(sendCommand, slave);
Expand Down
2 changes: 1 addition & 1 deletion src/store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#include <ArduinoJson.h>
#include <Preferences.h>
#include <Sequence.h>

#include "Sequence.h"
#include "mqtt.hpp"

Store store;
Expand Down