]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/commitdiff
Fixed warning detected by new ARM compiler 5.1.1
authorMichal Horn <hornmich@fel.cvut.cz>
Wed, 1 Oct 2014 09:58:28 +0000 (11:58 +0200)
committerMichal Horn <hornmich@fel.cvut.cz>
Wed, 1 Oct 2014 09:58:28 +0000 (11:58 +0200)
Casting to wrong data type.

rpp-lib
rpp-test-sw/commands/cmd_adc.c

diff --git a/rpp-lib b/rpp-lib
index aba445733f7c6691616d48a03317991d659ede9d..f6138bc6b104c52db50971c13049ed7b5eaf66d3 160000 (submodule)
--- a/rpp-lib
+++ b/rpp-lib
@@ -1 +1 @@
-Subproject commit aba445733f7c6691616d48a03317991d659ede9d
+Subproject commit f6138bc6b104c52db50971c13049ed7b5eaf66d3
index 104c4a37842f64f82b5c451d96095d870ff32830..7abca3331cd780c219086c02d788b69811a01d64 100644 (file)
@@ -66,7 +66,7 @@ int cmd_do_read_adc1_values(cmd_io_t *cmd_io, const struct cmd_des *des, char *p
     for (i = min-1; i < max; i++) {
            unsigned d = rpp_adc_get(i+1);
            double v = lsb2volts(d);
-           rpp_sci_printf((uint8_t *)"ADC%-2d %4d lsb ~ %5.2f V\n", i+1, d, v);
+           rpp_sci_printf("ADC%-2d %4d lsb ~ %5.2f V\n", i+1, d, v);
     }
     return 0;
 }