forked from Archive/PX4-Autopilot
Code style improvement, fix linter warning
This commit is contained in:
parent
ee5dfadb5d
commit
43a1c1b5f6
|
@ -50,10 +50,8 @@ UavcanEscController::UavcanEscController(uavcan::INode &node) :
|
||||||
|
|
||||||
int UavcanEscController::init()
|
int UavcanEscController::init()
|
||||||
{
|
{
|
||||||
int res = -1;
|
|
||||||
|
|
||||||
// ESC status subscription
|
// ESC status subscription
|
||||||
res = _uavcan_sub_status.start(StatusCbBinder(this, &UavcanEscController::esc_status_sub_cb));
|
int res = _uavcan_sub_status.start(StatusCbBinder(this, &UavcanEscController::esc_status_sub_cb));
|
||||||
if (res < 0)
|
if (res < 0)
|
||||||
{
|
{
|
||||||
warnx("ESC status sub failed %i", res);
|
warnx("ESC status sub failed %i", res);
|
||||||
|
|
Loading…
Reference in New Issue