Infrared remote library for Arduino: send and receive infrared signals with multiple protocols Port from Arduino-IRremote https://github.com/z3t0/Arduino-IRremote
Diff: irRecv.cpp
- Revision:
- 8:0650578366fd
- Parent:
- 4:5e46ae042bc7
diff -r c82a0d54a024 -r 0650578366fd irRecv.cpp --- a/irRecv.cpp Thu Mar 10 15:39:34 2016 +0000 +++ b/irRecv.cpp Sun Jun 16 04:36:58 2019 +0000 @@ -102,11 +102,11 @@ void IRrecv::enableIRIn ( ) { _ticker.detach(); - _ticker.attach_us(this, &IRrecv::timer_isr, USECPERTICK); + _ticker.attach_us(this, &IRrecv::timer_isr, USECPERTICK); // 100ms마다, "timer_isr" 메소드 실행 // Initialize state machine variables - irparams.rcvstate = STATE_IDLE; - irparams.rawlen = 0; + irparams.rcvstate = STATE_IDLE; // irparams라는 구조체의 muchine state를 의미하는 변수에 STATE_IDLE 상태(아마도 초기상태) 할당 + irparams.rawlen = 0; // raw buffer의 length 0으로 초기화 } //+=============================================================================