Skip to content

Commit 64e166d

Browse files
committed
ServerTemplate - fix source indentation
1 parent 6c43bc2 commit 64e166d

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The library is in Library Manager.
1111

1212
The class MACAddress works similar as the well known IPAddress class from Arduino Core.
1313

14-
It is compatible with an uint8_t array, implements Printable, can be parsed from string and formated to string.
14+
It is compatible with an uint8_t array, implements Printable, can be parsed from string and formatted to string.
1515

1616
Some existing libraries return the byte array with values in reversed order. Method reverse() reverses the order of bytes in an MACAddress object.
1717

@@ -24,9 +24,9 @@ Every WiFi library should be able to run the WiFiTest and WiFiScanNetworks sketc
2424

2525
### Tests for the Ethernet object
2626

27-
The LegacyEthernetTest has what would be good to have in a classic Ethernet library. But even the Ethernet library dosn't run it without modifications.
27+
The LegacyEthernetTest has what would be good to have in a classic Ethernet library. But even the Ethernet library doesn't run it without modifications.
2828

29-
A future ModernEtherneTest is will test Ethernet libraries with API aligned with WiFi libraries, especially method `config` for static IP configuration.
29+
A future ModernEtherneTest will test Ethernet libraries with API aligned with WiFi libraries, especially method `config` for static IP configuration.
3030

3131
### Tests for server implementation
3232

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)