@@ -61,7 +61,7 @@ void setup()
61
61
// Wait for the gap between tests, to synchronize with
62
62
// the sender.
63
63
// 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) {
65
65
Serial.println (" Waiting for gap" );
66
66
while (1 ) {
67
67
while (digitalRead (RECV_PIN) == LOW) {
@@ -125,7 +125,7 @@ void dump(decode_results *results) {
125
125
// The motivation behind this method is that the sender and the receiver
126
126
// can do the same test calls, and the mode variable indicates whether
127
127
// 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) {
129
129
if (mode == SENDER) {
130
130
Serial.println (label);
131
131
if (type == NEC) {
@@ -175,7 +175,7 @@ void test(char *label, int type, unsigned long value, int bits) {
175
175
176
176
// Test raw send or receive. This is similar to the test method,
177
177
// 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) {
179
179
if (mode == SENDER) {
180
180
Serial.println (label);
181
181
irsend.sendRaw (rawbuf, rawlen, 38 /* kHz */ );
0 commit comments