mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-22 22:18:37 +00:00
fix bit counts (#2894)
This commit is contained in:
@@ -121,6 +121,7 @@ class FProtoSubCarFordV0 : public FProtoSubCarBase {
|
||||
instance->generic.btn = instance->button;
|
||||
instance->generic.cnt = instance->count;
|
||||
*/
|
||||
data_count_bit = 64;
|
||||
if (callback) {
|
||||
callback(this);
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ class FProtoSubCarKiaV1 : public FProtoSubCarBase {
|
||||
|
||||
if (kia_v1_manchester_decode()) {
|
||||
// instance->generic.data = decode_data;
|
||||
data_count_bit = decode_count_bit;
|
||||
data_count_bit = raw_bit_count / 8;
|
||||
|
||||
// Extract fields from 56-bit data per RTL-433:
|
||||
// Serial: bits 55-24 (32 bits)
|
||||
|
||||
@@ -57,7 +57,7 @@ class FProtoSubCarSubaru : public FProtoSubCarBase {
|
||||
// uint8_t button = b[0] & 0x0F;
|
||||
// uint16_t cnt;
|
||||
// subaru_decode_count(b, &cnt);
|
||||
data_count_bit = decode_count_bit;
|
||||
data_count_bit = bit_count;
|
||||
if (callback) {
|
||||
callback(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user