bionicbone / 433mhz_Rolling_Code

quichip Add Rolling Code Protection
GNU General Public License v3.0
12 stars 3 forks source link

uint8_t ReadDataPins() should control all timing. #8

Closed bionicbone closed 8 months ago

bionicbone commented 8 months ago

uint8_t ReadDataPins() should control all timing and then time out on interference or other delays.

I think good coding here could reduce duplication in the main loop and create a better read control that waits x ms for the next data and times out if exepcted data does not arrive so the main loop can reset correctly in the event of interference.

Once hack resistance is proven, we should collect all data (preamble, rolling code & buttons) in one hit and only validate after successful transmission.

bionicbone commented 8 months ago

Tested OK