Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
dagar authored Mar 18, 2020
1 parent b23107b commit 1eb50a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/drivers/imu/invensense/icm20649/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,4 @@ px4_add_module(
px4_work_queue
drivers_accelerometer
drivers_gyroscope
drivers_magnetometer
)
6 changes: 3 additions & 3 deletions src/drivers/imu/invensense/icm20649/icm20649_main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
*
* Copyright (c) 2019 PX4 Development Team. All rights reserved.
* Copyright (c) 2020 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -47,8 +47,8 @@ static int start(enum Rotation rotation)
}

// create the driver
#if defined(PX4_SPI_BUS_1) && defined(PX4_SPIDEV_ICM_20948)
g_dev = new ICM20649(PX4_SPI_BUS_1, PX4_SPIDEV_ICM_20948, rotation);
#if defined(PX4_SPI_BUS_1) && defined(PX4_SPIDEV_ICM_20649)
g_dev = new ICM20649(PX4_SPI_BUS_1, PX4_SPIDEV_ICM_20649, rotation);
#endif

if (g_dev == nullptr) {
Expand Down

0 comments on commit 1eb50a1

Please sign in to comment.