diff --git a/README.md b/README.md index ae939c8..f0100c5 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ Protocols are split into **AM** and **FM** registries. The active registry is ch | Ford V1 | ✅ | ✅ | Manchester | F4 | Rolling Code | CRC16 | 315.00 / 433.92 | | Ford V2 | ✅ | ✅ | Manchester | F4 | Rolling Code (simple replay) | ❌ | 434.25 | | Ford V3 | ✅ | ❌ | Manchester | F4 | Rolling Code | ❌ | 434.25 | -| Honda Static | ✅ | ✅ | PWM | Honda1 | Static Code | Checksum | 315.00 / 433.92 | +| Honda Static | ✅ | ✅ | PWM | Honda1 | Static Code | Checksum | 433.65 | | Kia V0 / Suzuki V0 / Honda V0 / Mitsubishi V0 | ✅ | ✅ | PWM | FM476 | Rolling Code | CRC8 | 315.00 / 433.92 | | Kia V2 | ✅ | ✅ | Manchester | FM476 | Rolling Code | CRC4 | 315.00 / 433.92 | | Kia V3 / V4 | ✅ | ✅ | PWM | FM476 | KeeLoq | CRC4 (BF) | 315.00 / 433.92 | diff --git a/scenes/plugins/protopirate_emulate_plugin.c b/scenes/plugins/protopirate_emulate_plugin.c index 2a3f781..60aec73 100644 --- a/scenes/plugins/protopirate_emulate_plugin.c +++ b/scenes/plugins/protopirate_emulate_plugin.c @@ -935,7 +935,15 @@ static void emulate_draw_callback(Canvas* canvas, void* model) { (ctx->freq % 1000000) / 10000); canvas_draw_str(canvas, 2, 30, info_str); - snprintf(info_str, sizeof(info_str), "CNT:%04lX", (unsigned long)ctx->current_counter); + if(ctx->current_counter > 0xFFFF) { + snprintf( + info_str, + sizeof(info_str), + "CNT:...%03lX", + (unsigned long)ctx->current_counter & 0xFFF); + } else { + snprintf(info_str, sizeof(info_str), "CNT:%04lX", (unsigned long)ctx->current_counter); + } canvas_draw_str(canvas, 68, 20, info_str); if(ctx->current_counter > ctx->original_counter) {