More description user space app display output
authorJason Reeder <jreeder@ti.com>
Thu, 2 Aug 2018 18:51:07 +0000 (13:51 -0500)
committerJason Reeder <jreeder@ti.com>
Thu, 2 Aug 2018 18:51:07 +0000 (13:51 -0500)
Signed-off-by: Jason Reeder <jreeder@ti.com>
ARM_User_Space_App/arm_user_space_app.c

index 68a87db791588237d38f2b46d0149de9b12dcaa5..b8492c14b3cf0c11d29a5f793affcebd10765ae0 100644 (file)
@@ -188,9 +188,9 @@ void *print_func(void *data)
        /* Print each channel's min, max, and RMS values to the screen */
        while (1) {
                for(i = 0; i < NUM_CHANNELS/2; i++) {
-                       mvprintw(i, 0, "Ch%02d Vpp:[%.3f,%.3f]", i, min[i], max[i]);
+                        mvprintw(i, 0, "D%d:C%d Vpp:[%.3f,%.3f] ", i/8+1, i%8, min[i], max[i]);
                        mvprintw(i, 28, "RMS:%.3f", result[i]);
-                       mvprintw(i, 39, "| Ch%02d Vpp:[%.3f,%.3f]", i+NUM_CHANNELS/2, min[i+NUM_CHANNELS/2], max[i+NUM_CHANNELS/2]);
+                       mvprintw(i, 39, "| D%d:C%d Vpp:[%.3f,%.3f] ", (i+NUM_CHANNELS/2)/8+1, i%8, min[i+NUM_CHANNELS/2], max[i+NUM_CHANNELS/2]);
                        mvprintw(i, 69, "RMS:%.3f", result[i+NUM_CHANNELS/2]);
                }