mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-11 17:19:29 +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.btn = instance->button;
|
||||||
instance->generic.cnt = instance->count;
|
instance->generic.cnt = instance->count;
|
||||||
*/
|
*/
|
||||||
|
data_count_bit = 64;
|
||||||
if (callback) {
|
if (callback) {
|
||||||
callback(this);
|
callback(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ class FProtoSubCarKiaV1 : public FProtoSubCarBase {
|
|||||||
|
|
||||||
if (kia_v1_manchester_decode()) {
|
if (kia_v1_manchester_decode()) {
|
||||||
// instance->generic.data = decode_data;
|
// 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:
|
// Extract fields from 56-bit data per RTL-433:
|
||||||
// Serial: bits 55-24 (32 bits)
|
// Serial: bits 55-24 (32 bits)
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ class FProtoSubCarSubaru : public FProtoSubCarBase {
|
|||||||
// uint8_t button = b[0] & 0x0F;
|
// uint8_t button = b[0] & 0x0F;
|
||||||
// uint16_t cnt;
|
// uint16_t cnt;
|
||||||
// subaru_decode_count(b, &cnt);
|
// subaru_decode_count(b, &cnt);
|
||||||
data_count_bit = decode_count_bit;
|
data_count_bit = bit_count;
|
||||||
if (callback) {
|
if (callback) {
|
||||||
callback(this);
|
callback(this);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user