mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 23:23:34 +08:00
platforms: remove unnecessary i2c platform abstraction
This commit is contained in:
@@ -42,7 +42,6 @@
|
||||
#include <px4_platform_common/log.h>
|
||||
#include <px4_platform_common/module.h>
|
||||
#include <px4_platform_common/getopt.h>
|
||||
#include <px4_platform_common/i2c.h>
|
||||
|
||||
namespace i2cdetect
|
||||
{
|
||||
@@ -80,7 +79,7 @@ int detect(int bus)
|
||||
do {
|
||||
uint8_t send_data = 0;
|
||||
uint8_t recv_data = 0;
|
||||
px4_i2c_msg_t msgv[2];
|
||||
i2c_msg_s msgv[2] {};
|
||||
|
||||
// send
|
||||
msgv[0].frequency = 100000;
|
||||
|
||||
Reference in New Issue
Block a user