From 629d6574989a292278d4ac86ba59dbcfc13837d9 Mon Sep 17 00:00:00 2001 From: joanvallve <jvallve@iri.upc.edu> Date: Mon, 11 May 2020 12:32:33 +0200 Subject: [PATCH] printing char properly --- src/observations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/observations.cpp b/src/observations.cpp index 34a038d..68eba2b 100644 --- a/src/observations.cpp +++ b/src/observations.cpp @@ -134,7 +134,7 @@ static void Observations::print(obsd_t& _obs) printArray<unsigned char, ARRAY_SIZE(_obs.code)>("\tcode: ", _obs.code); printArray<unsigned char, ARRAY_SIZE(_obs.qualL)>("\tqualL: ", _obs.qualL); printArray<unsigned char, ARRAY_SIZE(_obs.qualP)>("\tqualP: ", _obs.qualP); - printf("\tFreq. channel: %uc \n", _obs.freq); + printf("\tFreq. channel: %uc \n", (int)_obs.freq); printArray<double, ARRAY_SIZE(_obs.L)>("\tL: ", _obs.L); printArray<double, ARRAY_SIZE(_obs.P)>("\tP: ", _obs.P); printArray<float, ARRAY_SIZE(_obs.D)>("\tD: ", _obs.D); -- GitLab