From 48e7c67359b254125d4887770cc059b4162a15af Mon Sep 17 00:00:00 2001 From: Tiernan Messmer Date: Mon, 1 May 2023 13:07:33 +1000 Subject: [PATCH] fix debug print warnings --- lib/nfc/protocols/nfcv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nfc/protocols/nfcv.c b/lib/nfc/protocols/nfcv.c index e7b6c761a..3eb295385 100644 --- a/lib/nfc/protocols/nfcv.c +++ b/lib/nfc/protocols/nfcv.c @@ -1316,13 +1316,13 @@ bool nfcv_emu_loop( float fc_1024 = (4.0f * duration) / (4 * (frame_pos * 4 + 1) + 1); /* it should be 1024/fc in 64MHz ticks */ float fact = fc_1024 / ((1000000.0f * 64.0f * 1024.0f) / NFCV_FC); - FURI_LOG_D(TAG, "1024/fc: %f -> %f %%", fc_1024, fact * 100); + FURI_LOG_D(TAG, "1024/fc: %f -> %f %%", (double)fc_1024, (double)(fact * 100)); #if 0 if(fact > 0.99f && fact < 1.01f) { static float avg_err = 0.0f; avg_err = (avg_err * 15.0f + (fact - 1.0f)) / 16.0f; - FURI_LOG_D(TAG, " ==> set %f %%", (1.0f + avg_err) * 100); + FURI_LOG_D(TAG, " ==> set %f %%", (double)((1.0f + avg_err) * 100)); digital_sequence_timebase_correction(nfcv_data->emu_air.nfcv_signal, 1.0f + avg_err); } #endif