Skip to content

Commit 81b1815

Browse files
committed
Fix typos
Thanks codespell Signed-off-by: Frederic Pillon <[email protected]>
1 parent be4ed9b commit 81b1815

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

examples/AdvancedChatServer/AdvancedChatServer.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void loop() {
103103
}
104104
for (byte i = 0; i < 4; i++) {
105105
if (!(clients[i].connected())) {
106-
// client.stop() invalidates the internal socket-descriptor, so next use of == will allways return false;
106+
// client.stop() invalidates the internal socket-descriptor, so next use of == will always return false;
107107
clients[i].stop();
108108
}
109109
}

examples/BarometricPressureWebServer/BarometricPressureWebServer.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void setup() {
6262
Ethernet.begin(ip);
6363
server.begin();
6464

65-
// initalize the data ready and chip select pins:
65+
// initialize the data ready and chip select pins:
6666
pinMode(dataReadyPin, INPUT);
6767
pinMode(chipSelectPin, OUTPUT);
6868

examples/WebClient/WebClient.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void setup() {
4242
// start the Ethernet connection:
4343
if (Ethernet.begin() == 0) {
4444
Serial.println("Failed to configure Ethernet using DHCP");
45-
// try to congifure using IP address instead of DHCP:
45+
// try to configure using IP address instead of DHCP:
4646
Ethernet.begin(ip);
4747
}
4848
// give the Ethernet shield a second to initialize:

src/utility/ethernetif.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ static void low_level_init(struct netif *netif)
239239
*
240240
* @note Returning ERR_MEM here if a DMA queue of your MAC is full can lead to
241241
* strange results. You might consider waiting for space in the DMA queue
242-
* to become availale since the stack doesn't retry to send a packet
242+
* to become available since the stack doesn't retry to send a packet
243243
* dropped because of memory failure (except for the TCP timers).
244244
*/
245245
static err_t low_level_output(struct netif *netif, struct pbuf *p)

src/utility/stm32_eth.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ void ethernetif_notify_conn_changed(struct netif *netif)
514514
#endif /* LWIP_NETIF_LINK_CALLBACK */
515515

516516
/**
517-
* @brief Notify the User about the nework interface config status
517+
* @brief Notify the User about the network interface config status
518518
* @param netif: the network interface
519519
* @retval None
520520
*/
@@ -805,7 +805,7 @@ void udp_receive_callback(void *arg, struct udp_pcb *pcb, struct pbuf *p,
805805
/**
806806
* @brief Function called when TCP connection established
807807
* @param arg: user supplied argument
808-
* @param tpcb: pointer on the connection contol block
808+
* @param tpcb: pointer on the connection control block
809809
* @param err: when connection correctly established err should be ERR_OK
810810
* @retval err_t: returned error
811811
*/
@@ -865,7 +865,7 @@ err_t tcp_accept_callback(void *arg, struct tcp_pcb *newpcb, err_t err)
865865
client->data.p = NULL;
866866
client->data.available = 0;
867867

868-
/* Looking for an empty soket */
868+
/* Looking for an empty socket */
869869
for (uint16_t i = 0; i < MAX_CLIENT; i++) {
870870
if (tcpClient[i] == NULL) {
871871
tcpClient[i] = client;
@@ -916,7 +916,7 @@ err_t tcp_accept_callback(void *arg, struct tcp_pcb *newpcb, err_t err)
916916
* @param arg: argument to be passed to receive callback
917917
* @param tpcb: tcp connection control block
918918
* @param err: receive error code
919-
* @retval err_t: retuned error
919+
* @retval err_t: returned error
920920
*/
921921
static err_t tcp_recv_callback(void *arg, struct tcp_pcb *tpcb, struct pbuf *p, err_t err)
922922
{

0 commit comments

Comments
 (0)