Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

tests_ir: change the test buttons to 1 ~ 9, 0

  • Loading branch information...
commit 55852b2b4250ac0cd36753427c19347251cc2696 1 parent 2fe1bf9
Xiangfu Liu authored
Showing with 12 additions and 6 deletions.
  1. +12 −6 src/tests_ir.c
View
18 src/tests_ir.c
@@ -28,21 +28,27 @@ static int reception()
int pre_rx,i,rx;
int result;
- int rc5_code[5] = {0x0c, 0x01, 0x03, 0x05, 0x10};
+ int rc5_code[10] = {0x01, 0x02, 0x03, 0x04, 0x05,
+ 0x06, 0x07, 0x08, 0x09, 0x00};
char *code_strings[] = {
- "[Standby] passed",
"[1] passed",
+ "[2] passed",
"[3] passed",
+ "[4] passed",
"[5] passed",
- "[VolumeUp] passed"
+ "[6] passed",
+ "[7] passed",
+ "[8] passed",
+ "[9] passed",
+ "[0] passed",
};
pre_rx = 0;
i = 0;
result = TEST_STATUS_NOT_DONE;
- printf("Press the remote's [standby], [1], [3], [5], [VolumeUp] one by one\n");
+ printf("Press the remote's [1] ... [9], [0], one by one\n");
printf("Waiting for remote. e for exit\n");
while(1) {
@@ -57,7 +63,7 @@ static int reception()
rx = CSR_RC5_RX;
irq_ack(IRQ_IR);
- if(i == 5 || i == -1) { /* 5: all passed, -1: failed */
+ if(i == 10 || i == -1) { /* 10: all passed, -1: failed */
printf("Now press 'e' exit Infrared test. rx [0x%04x]\n", rx);
continue;
}
@@ -78,7 +84,7 @@ static int reception()
pre_rx = rx;
i++;
- if(i == 5) {
+ if(i == 10) {
result = TEST_STATUS_PASSED;
continue;
}
Please sign in to comment.
Something went wrong with that request. Please try again.