sync during ir_recv dev
All checks were successful
Deploy Docs / build-and-deploy (push) Successful in 12s
All checks were successful
Deploy Docs / build-and-deploy (push) Successful in 12s
This commit is contained in:
@@ -122,6 +122,7 @@ static void process_ir_sample(ir_ctx_t *ctx, int16_t raw) {
|
||||
ctx->bit_count = 0;
|
||||
ctx->bit_acc = 0;
|
||||
ctx->timer = 0;
|
||||
LOG_DBG("Header detectet, energy: %u", energy);
|
||||
}
|
||||
break;
|
||||
case IR_STATE_WAIT_MARK:
|
||||
@@ -148,7 +149,7 @@ static void process_ir_sample(ir_ctx_t *ctx, int16_t raw) {
|
||||
p.data.bytes[2] = (ctx->bit_acc >> 16) & 0xFF;
|
||||
|
||||
if (lastertag_crc8(p.data.bytes, 2) == p.data.fields.crc) {
|
||||
LOG_INF("VALID: Type %u, ID %u, Val %u",
|
||||
LOG_DBG("VALID: Type %u, ID %u, Val %u",
|
||||
p.data.fields.type, p.data.fields.heal.healer_id, p.data.fields.heal.amount);
|
||||
} else {
|
||||
LOG_WRN("CRC Error! Acc: 0x%06X", ctx->bit_acc);
|
||||
|
||||
Reference in New Issue
Block a user