X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=rc6protocol.cpp;h=fcbb4127f61b520d71559356d70619cc70a3a19c;hb=305addf8d83ed71844e938551ee900d06359d42a;hp=dcdaee6cfd2d43a35468f7e6c8b80a2f2f8da256;hpb=80604d5fadefa03991be6c0111e2f25798efdb84;p=pierogi diff --git a/rc6protocol.cpp b/rc6protocol.cpp index dcdaee6..fcbb412 100644 --- a/rc6protocol.cpp +++ b/rc6protocol.cpp @@ -51,10 +51,9 @@ void RC6Protocol::startSendingCommand( PIRRX51Hardware rx51device(carrierFrequency, dutyCycle); int repeatCount = 0; + int duration = 0; while (repeatCount < MAX_REPEAT_COUNT) { - int duration = 0; - // First, construct the "Header" segment of the pulse train. For now, // I'm only supporting the "consumer electronics mode" of RC6; this code // must be changed if we want to support more than that!