This commit is contained in:
d4rks1d33
2026-03-25 18:33:47 +00:00
parent 692d223570
commit ad4cd89dc4
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -6,7 +6,6 @@
#define TAG "RenaultHitag"
// reemplazo de DURATION_DIFF
#define ABS_DIFF(a, b) ((a) > (b) ? ((a) - (b)) : ((b) - (a)))
static const SubGhzBlockConst renault_hitag_const = {
@@ -47,7 +46,7 @@ static void renault_hitag_reset(void* ctx) {
}
static void renault_hitag_feed(void* ctx, bool level, uint32_t duration) {
UNUSED(level); // 👈 FIX warning
UNUSED(level);
RenaultHitagDecoder* inst = ctx;
+2 -2
View File
@@ -37,7 +37,7 @@ static void feed(void* ctx,bool level,uint32_t d){
UNUSED(level);
RenaultValeoDecoder* i = ctx;
if(d<600){ // heurística simple
if(d<600){
i->data <<=1;
i->bit_count++;
} else if(d<1200){
@@ -51,7 +51,7 @@ static void feed(void* ctx,bool level,uint32_t d){
i->generic.serial = (uint32_t)(i->data>>32);
i->generic.cnt = (i->data>>8)&0xFFFF;
// 🔐 placeholder crypto
// placeholder
// uint64_t key = [MFKey keeloq key];
if(i->base.callback)