Skip to content

Commit 9fa44d5

Browse files
authored
minor cosmetic (#115)
* typo * includes
1 parent e7afad9 commit 9fa44d5

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

include/schedule.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#pragma once
22

3+
#include <Datatypes.h>
4+
#include <EbusHandler.h>
35
#include <WiFiClient.h>
46

57
#include <deque>
68
#include <string>
79
#include <vector>
810

9-
#include "Datatypes.h"
10-
#include "EbusHandler.h"
1111
#include "store.hpp"
1212

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

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

64-
void processActive(const std::vector<uint8_t>(master),
64+
void processActive(const std::vector<uint8_t> &master,
6565
const std::vector<uint8_t> &slave);
6666
void processPassive(const std::vector<uint8_t> &master,
6767
const std::vector<uint8_t> &slave);

include/store.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#pragma once
22

3+
#include <Datatypes.h>
4+
35
#include <deque>
46
#include <string>
57
#include <vector>
68

7-
#include "Datatypes.h"
8-
99
// Implements the storage of active and passive commands. New commands can be
1010
// added and removed via mqtt. It provides functions for saving, loading and
1111
// deleting commands in the nvs memory. Commands stored in the nvs are loaded at

src/schedule.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ void Schedule::errorCallback(const std::string &str) {
245245
mqttClient.publish(topic.c_str(), 0, false, payload.c_str());
246246
}
247247

248-
void Schedule::processActive(const std::vector<uint8_t>(master),
248+
void Schedule::processActive(const std::vector<uint8_t> &master,
249249
const std::vector<uint8_t> &slave) {
250250
if (send)
251251
publishSend(sendCommand, slave);

src/store.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
#include <ArduinoJson.h>
44
#include <Preferences.h>
5+
#include <Sequence.h>
56

6-
#include "Sequence.h"
77
#include "mqtt.hpp"
88

99
Store store;

0 commit comments

Comments
 (0)