@@ -53,7 +53,7 @@ class ServerTemplate :
53
53
TClient available () {
54
54
55
55
acceptClients ();
56
-
56
+
57
57
// find next client with data available
58
58
for (uint8_t i = 0 ; i < SERVER_MAX_MONITORED_CLIENTS; i++) {
59
59
if (index == SERVER_MAX_MONITORED_CLIENTS) {
@@ -117,7 +117,7 @@ class ServerTemplate :
117
117
118
118
virtual void flush () override {
119
119
#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++) {
121
121
if (established (connectedClients[i])) {
122
122
connectedClients[i].flush ();
123
123
}
@@ -126,7 +126,7 @@ class ServerTemplate :
126
126
}
127
127
128
128
void end () {
129
- SERVER_SUPER_END_FNC;
129
+ SERVER_SUPER_END_FNC;
130
130
for (uint8_t i = 0 ; i < SERVER_MAX_MONITORED_CLIENTS; i++) {
131
131
if (connectedClients[i]) {
132
132
connectedClients[i].stop ();
@@ -143,9 +143,9 @@ class ServerTemplate :
143
143
TClient& client = connectedClients[i];
144
144
if (!client.connected () && !client.available ()) {
145
145
#ifdef SERVER_USE_SUPER_AVAILABLE
146
- client = TServer::available ();
146
+ client = TServer::available ();
147
147
#else
148
- client = TServer::accept ();
148
+ client = TServer::accept ();
149
149
#endif
150
150
}
151
151
}
@@ -155,10 +155,9 @@ class ServerTemplate :
155
155
#ifdef SERVER_USE_CLIENT_STATUS
156
156
return client.status () == ESTABLISHED;
157
157
#else
158
- return client.connected ();
158
+ return client.connected ();
159
159
#endif
160
160
}
161
161
};
162
162
163
-
164
163
#endif
0 commit comments