11static void Baro_exec(
Shell *shell, uint8_t *);
20__attribute__((section(
".shell_baro"), unused))
30static void Baro_exec(
Shell *shell, uint8_t *flags) {
33 if (!strcmp(flags,
"read")) {
35 snprintf(str, 50,
"Ground pressure: %f\n\r", baro->groundPress);
36 shell->usb.
print(&shell->usb, str);
37 snprintf(str, 50,
"Current pressure: %f\n\r", baro->press);
38 shell->usb.
print(&shell->usb, str);
39 snprintf(str, 50,
"Current temperature: %f\n\r", baro->temp);
40 shell->usb.
print(&shell->usb, str);
void(* print)(struct UART *, char *)
UART print string method.
DeviceType device
Enum specifier for device type.