systemcmds: convert c -> c++

This commit is contained in:
Daniel Agar
2021-12-21 09:22:49 -05:00
parent d2e931858d
commit 0029a75ab0
27 changed files with 69 additions and 111 deletions
+2 -2
View File
@@ -55,8 +55,8 @@ set(srcs
test_parameters.cpp
test_perf.c
test_ppm.cpp
test_ppm_loopback.c
test_rc.c
test_ppm_loopback.cpp
test_rc.cpp
test_search_min.cpp
test_sleep.c
test_uart_baudchange.c
+1 -1
View File
@@ -80,7 +80,7 @@ int test_mount(int argc, char *argv[])
if (d) {
while ((dir = readdir(d)) != NULL) {
while ((dir = readdir(d)) != nullptr) {
//printf("%s\n", dir->d_name);
}
@@ -32,7 +32,7 @@
****************************************************************************/
/**
* @file test_ppm_loopback.c
* @file test_ppm_loopback.cpp
* Tests the PWM outputs and PPM input
*/
@@ -120,7 +120,7 @@ int test_ppm_loopback(int argc, char *argv[])
warnx("servo count: %d", servo_count);
struct pwm_output_values pwm_out = {.values = {0}, .channel_count = 0};
pwm_output_values pwm_out{};
for (unsigned i = 0; (i < servo_count) && (i < sizeof(pwm_values) / sizeof(pwm_values[0])); i++) {
pwm_out.values[i] = pwm_values[i];
@@ -32,7 +32,7 @@
****************************************************************************/
/**
* @file test_rc.c
* @file test_rc.cpp
* Tests RC input.
*/