@@ -61,7 +61,7 @@ void setup()
6161// Wait for the gap between tests, to synchronize with
6262// the sender.
6363// Specifically, wait for a signal followed by a gap of at last gap ms.
64- void waitForGap (int gap) {
64+ void waitForGap (unsigned long gap) {
6565 Serial.println (" Waiting for gap" );
6666 while (1 ) {
6767 while (digitalRead (RECV_PIN) == LOW) {
@@ -125,7 +125,7 @@ void dump(decode_results *results) {
125125// The motivation behind this method is that the sender and the receiver
126126// can do the same test calls, and the mode variable indicates whether
127127// to send or receive.
128- void test (char *label, int type, unsigned long value, int bits) {
128+ void test (const char *label, int type, unsigned long value, int bits) {
129129 if (mode == SENDER) {
130130 Serial.println (label);
131131 if (type == NEC) {
@@ -175,7 +175,7 @@ void test(char *label, int type, unsigned long value, int bits) {
175175
176176// Test raw send or receive. This is similar to the test method,
177177// except it send/receives raw data.
178- void testRaw (char *label, unsigned int *rawbuf, int rawlen) {
178+ void testRaw (const char *label, unsigned int *rawbuf, int rawlen) {
179179 if (mode == SENDER) {
180180 Serial.println (label);
181181 irsend.sendRaw (rawbuf, rawlen, 38 /* kHz */ );
0 commit comments