Skip to content

Commit 23e5d4c

Browse files
authored
Merge pull request #544 from LeeLeahy2/vct-add-disp-res-use
VCT: Add DISPLAY_RESOURCE_USAGE
2 parents 2fc3f54 + c4fc88e commit 23e5d4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Firmware/Tools/VcServerTest.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#define DISPLAY_COMMAND_COMPLETE 0
3636
#define DISPLAY_DATA_ACK 0
3737
#define DISPLAY_DATA_NACK 1
38+
#define DISPLAY_RESOURCE_USAGE 0
3839
#define DISPLAY_STATE_TRANSITION 0
3940
#define DISPLAY_UNKNOWN_COMMANDS 0
4041
#define DISPLAY_VC_STATE 0
@@ -1271,7 +1272,7 @@ int main(int argc, char **argv)
12711272
// Check the resource usage
12721273
//----------------------------------------
12731274

1274-
if (!(timeoutCount % (ONE_SECOND_COUNT * 60)))
1275+
if (DISPLAY_RESOURCE_USAGE && (!(timeoutCount % (ONE_SECOND_COUNT * 60))))
12751276
{
12761277
struct rusage usage;
12771278
int s_days;

0 commit comments

Comments
 (0)