From 3ff49778a88c0be1fe2333359a78034ee20de00f Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 15 Feb 2015 21:39:50 +0100 Subject: [PATCH] FMU driver: Report class instance registration fail --- src/drivers/px4fmu/fmu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/drivers/px4fmu/fmu.cpp b/src/drivers/px4fmu/fmu.cpp index 5f7b812281..3a9246bf29 100644 --- a/src/drivers/px4fmu/fmu.cpp +++ b/src/drivers/px4fmu/fmu.cpp @@ -332,6 +332,8 @@ PX4FMU::init() if (_class_instance == CLASS_DEVICE_PRIMARY) { log("default PWM output device"); + } else if (_class_instance < 0) { + log("FAILED registering class device"); } /* reset GPIOs */