@@ -203,7 +203,7 @@ void emac_if_validate_outgoing_msg(void)
203203
204204 if (outgoing_msgs[i].flags & RESPONSE_RECEIVED) {
205205
206- int failure = outgoing_msgs[i].flags & (INVALID_LENGHT | INVALID_DATA);
206+ int failure = outgoing_msgs[i].flags & (INVALID_LENGTH | INVALID_DATA);
207207
208208 if (failure) {
209209 SET_ERROR_FLAGS (MSG_VALID_ERROR);
@@ -212,7 +212,7 @@ void emac_if_validate_outgoing_msg(void)
212212 if (!(outgoing_msgs[i].flags & PRINTED)) {
213213 if ((trace_level & TRACE_SUCCESS) || ((trace_level & TRACE_FAILURE) && failure)) {
214214 printf (" response: receipt number %i %s %s %s\r\n\r\n " , outgoing_msgs[i].receipt_number ,
215- outgoing_msgs[i].flags & INVALID_LENGHT ? " LENGTH INVALID" : " LENGTH OK" ,
215+ outgoing_msgs[i].flags & INVALID_LENGTH ? " LENGTH INVALID" : " LENGTH OK" ,
216216 outgoing_msgs[i].flags & INVALID_DATA ? " DATA INVALID" : " DATA OK" ,
217217 outgoing_msgs[i].flags & BROADCAST ? " BROADCAST" : " UNICAST" );
218218 outgoing_msgs[i].flags |= PRINTED;
@@ -252,11 +252,11 @@ bool emac_if_update_reply_to_outgoing_msg(int receipt_number, int length, int in
252252 minimum frame length or sent length (in case frame has been converted to be longer than minimum
253253 length does not validate length) */
254254 if (length != ETH_FRAME_MIN_LEN && length != ETH_FRAME_PADD_LEN && outgoing_msgs[outgoing_msg_index].length != length && length < ETH_FRAME_MIN_LEN) {
255- outgoing_msgs[outgoing_msg_index].flags |= INVALID_LENGHT ;
255+ outgoing_msgs[outgoing_msg_index].flags |= INVALID_LENGTH ;
256256 }
257257 } else {
258258 if (outgoing_msgs[outgoing_msg_index].length != length) {
259- outgoing_msgs[outgoing_msg_index].flags |= INVALID_LENGHT ;
259+ outgoing_msgs[outgoing_msg_index].flags |= INVALID_LENGTH ;
260260 }
261261 }
262262 if (invalid_data_index && invalid_data_index < outgoing_msgs[outgoing_msg_index].length ) {
0 commit comments