Skip to content

Commit ca06d34

Browse files
committed
Fix _ux_utility_time_elapsed define and pass tests
1 parent 1f66e3c commit ca06d34

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/core/inc/ux_utility.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ extern ULONG _ux_utility_time_get(VOID);
172172
#endif
173173

174174
#ifndef _ux_utility_time_elapsed
175-
#define _ux_utility_time_elapsed(a,b) (((b)>=(a)) ? ((b)-(a)) : (0xFFFFFFFFul-(b)+(a)+1))
175+
#define _ux_utility_time_elapsed(a,b) (((b)>=(a)) ? ((b)-(a)) : (0xFFFFFFFFul-(a)+(b)+1))
176176
#else
177177
extern ALIGN_TYPE _ux_utility_time_elapsed(ALIGN_TYPE, ALIGN_TYPE);
178178
#endif

test/regression/usbx_ux_utility_time_elapsed_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* This test is designed to test the ux_utility_timer_.... */
1+
/* This test is designed to test the ux_utility_time_elapsed macro.... */
22

33
#include <stdio.h>
44
#include "tx_api.h"

0 commit comments

Comments
 (0)