Fix compilation errors in examples

This commit is contained in:
Mike Causer 2016-05-24 21:41:44 +10:00
parent 2e9b2e0e9b
commit ca54284684
2 changed files with 2 additions and 4 deletions

View File

@ -9,6 +9,7 @@ void loop() {
if(RFControl::hasData()) {
unsigned int *timings;
unsigned int timings_size;
unsigned int pulse_length_divider = RFControl::getPulseLengthDivider();
RFControl::getRaw(&timings, &timings_size);
unsigned int buckets[8];
RFControl::compressTimings(buckets, timings, timings_size);
@ -27,5 +28,3 @@ void loop() {
RFControl::continueReceiving();
}
}

View File

@ -8,6 +8,7 @@ void setup() {
void loop() {
if(RFControl::hasData()) {
unsigned int *timings;
unsigned int timings_size;
unsigned int pulse_length_divider = RFControl::getPulseLengthDivider();
RFControl::getRaw(&timings, &timings_size);
for(int i=0; i < timings_size; i++) {
@ -23,5 +24,3 @@ void loop() {
RFControl::continueReceiving();
}
}