Skip to content

Commit 817eb85

Browse files
committed
ServerTemplate - fix source indentation
1 parent 6c43bc2 commit 817eb85

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/ServerTemplate.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class ServerTemplate :
5353
TClient available() {
5454

5555
acceptClients();
56-
56+
5757
// find next client with data available
5858
for (uint8_t i = 0; i < SERVER_MAX_MONITORED_CLIENTS; i++) {
5959
if (index == SERVER_MAX_MONITORED_CLIENTS) {
@@ -117,7 +117,7 @@ class ServerTemplate :
117117

118118
virtual void flush() override {
119119
#ifndef SERVER_DONT_FLUSH_CLIENTS
120-
for (uint8_t i = 0; i < SERVER_MAX_MONITORED_CLIENTS; i++) {
120+
for (uint8_t i = 0; i < SERVER_MAX_MONITORED_CLIENTS; i++) {
121121
if (established(connectedClients[i])) {
122122
connectedClients[i].flush();
123123
}
@@ -126,7 +126,7 @@ class ServerTemplate :
126126
}
127127

128128
void end() {
129-
SERVER_SUPER_END_FNC;
129+
SERVER_SUPER_END_FNC;
130130
for (uint8_t i = 0; i < SERVER_MAX_MONITORED_CLIENTS; i++) {
131131
if (connectedClients[i]) {
132132
connectedClients[i].stop();
@@ -143,9 +143,9 @@ class ServerTemplate :
143143
TClient& client = connectedClients[i];
144144
if (!client.connected() && !client.available()) {
145145
#ifdef SERVER_USE_SUPER_AVAILABLE
146-
client = TServer::available();
146+
client = TServer::available();
147147
#else
148-
client = TServer::accept();
148+
client = TServer::accept();
149149
#endif
150150
}
151151
}
@@ -155,10 +155,9 @@ class ServerTemplate :
155155
#ifdef SERVER_USE_CLIENT_STATUS
156156
return client.status() == ESTABLISHED;
157157
#else
158-
return client.connected();
158+
return client.connected();
159159
#endif
160160
}
161161
};
162162

163-
164163
#endif

0 commit comments

Comments
 (0)