@@ -131,7 +131,7 @@ using network_event_handle_t = size_t;
131
131
/* *
132
132
* @brief Class that provides network events callback handling
133
133
* it registers user callback functions for event handling,
134
- * maintans the queue of events and propagates the event amoung subscribed callbacks
134
+ * maintains the queue of events and propagates the event among subscribed callbacks
135
135
* callback are called in the context of a dedicated task consuming the queue
136
136
*
137
137
*/
@@ -245,11 +245,11 @@ class NetworkEvents {
245
245
246
246
protected:
247
247
bool initNetworkEvents ();
248
- // same as onEvent() but places newly added handler at the begining of registered events list
248
+ // same as onEvent() but places newly added handler at the beginning of registered events list
249
249
network_event_handle_t onSysEvent (NetworkEventCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX);
250
- // same as onEvent() but places newly added handler at the begining of registered events list
250
+ // same as onEvent() but places newly added handler at the beginning of registered events list
251
251
network_event_handle_t onSysEvent (NetworkEventFuncCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX);
252
- // same as onEvent() but places newly added handler at the begining of registered events list
252
+ // same as onEvent() but places newly added handler at the beginning of registered events list
253
253
network_event_handle_t onSysEvent (NetworkEventSysCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX);
254
254
255
255
private:
@@ -281,11 +281,11 @@ class NetworkEvents {
281
281
QueueHandle_t _arduino_event_queue;
282
282
TaskHandle_t _arduino_event_task_handle;
283
283
284
- // registred events callbacks containter
284
+ // registered events callbacks container
285
285
std::vector<NetworkEventCbList_t> _cbEventList;
286
286
287
287
#if defined NETWORK_EVENTS_MUTEX && SOC_CPU_CORES_NUM > 1
288
- // containter access mutex
288
+ // container access mutex
289
289
std::mutex _mtx;
290
290
#endif // defined NETWORK_EVENTS_MUTEX && SOC_CPU_CORES_NUM > 1
291
291
0 commit comments