@@ -203,7 +203,7 @@ void emac_if_validate_outgoing_msg(void)
203
203
204
204
if (outgoing_msgs[i].flags & RESPONSE_RECEIVED) {
205
205
206
- int failure = outgoing_msgs[i].flags & (INVALID_LENGHT | INVALID_DATA);
206
+ int failure = outgoing_msgs[i].flags & (INVALID_LENGTH | INVALID_DATA);
207
207
208
208
if (failure) {
209
209
SET_ERROR_FLAGS (MSG_VALID_ERROR);
@@ -212,7 +212,7 @@ void emac_if_validate_outgoing_msg(void)
212
212
if (!(outgoing_msgs[i].flags & PRINTED)) {
213
213
if ((trace_level & TRACE_SUCCESS) || ((trace_level & TRACE_FAILURE) && failure)) {
214
214
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" ,
216
216
outgoing_msgs[i].flags & INVALID_DATA ? " DATA INVALID" : " DATA OK" ,
217
217
outgoing_msgs[i].flags & BROADCAST ? " BROADCAST" : " UNICAST" );
218
218
outgoing_msgs[i].flags |= PRINTED;
@@ -252,11 +252,11 @@ bool emac_if_update_reply_to_outgoing_msg(int receipt_number, int length, int in
252
252
minimum frame length or sent length (in case frame has been converted to be longer than minimum
253
253
length does not validate length) */
254
254
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 ;
256
256
}
257
257
} else {
258
258
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 ;
260
260
}
261
261
}
262
262
if (invalid_data_index && invalid_data_index < outgoing_msgs[outgoing_msg_index].length ) {
0 commit comments