fix batt_smbus: check if module running for custom_command

This commit is contained in:
Beat Küng
2019-11-04 11:50:53 +01:00
parent f63b55b219
commit 60f55a4fa1
+5
View File
@@ -571,6 +571,11 @@ int BATT_SMBUS::custom_command(int argc, char *argv[])
uint8_t man_name[22];
int result = 0;
if (!is_running()) {
PX4_ERR("not running");
return -1;
}
BATT_SMBUS *obj = get_instance();
if (!strcmp(input, "man_info")) {