mirror of
https://github.com/D4C1-Labs/Flipper-ARF.git
synced 2026-08-29 00:58:20 +00:00
Update
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user