mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-27 03:49:58 -07:00
Merge remote-tracking branch 'OFW/dev' into dev
This commit is contained in:
@@ -96,7 +96,7 @@ bool protocol_pac_stanley_decoder_feed(ProtocolPACStanley* protocol, bool level,
|
||||
|
||||
if(duration > PAC_STANLEY_MAX_TIME) return false;
|
||||
|
||||
uint8_t pulses = (uint8_t)round((float)duration / PAC_STANLEY_CYCLE_LENGTH);
|
||||
uint8_t pulses = (uint8_t)roundf((float)duration / PAC_STANLEY_CYCLE_LENGTH);
|
||||
|
||||
// Handle last stopbit & preamble (1 sb, 8 bit preamble)
|
||||
if(pulses >= 9 && !protocol->got_preamble) {
|
||||
|
||||
Reference in New Issue
Block a user