Add type-checking to data objects map

This commit is contained in:
Martin Jaeger
2020-01-31 14:50:32 +01:00
parent 1b6a7f82d7
commit 3a8103457f
7 changed files with 310 additions and 138 deletions
+4 -2
View File
@@ -6,6 +6,8 @@
#include "load.h"
#include <inttypes.h> // for PRIu32 in printf statements
#if defined(__ZEPHYR__)
#include <zephyr.h>
@@ -207,7 +209,7 @@ void LoadOutput::switch_set(bool status)
}
#endif
print_info("Load pgood = %d, state = %u\n", status, state);
print_info("Load pgood = %d, state = %" PRIu32 "\n", status, state);
}
void LoadOutput::usb_set(bool status)
@@ -245,7 +247,7 @@ void LoadOutput::usb_set(bool status)
}
#endif
print_info("USB pgood = %d, state = %u, en = %d\n", status, usb_state, usb_enable);
print_info("USB pgood = %d, state = %" PRIu32 ", en = %d\n", status, usb_state, usb_enable);
}
#ifdef __ZEPHYR__