Skip to content

Commit

Permalink
[wpilibc] ADIS16448, ADIS16470: Initialize member pointers (#6282)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson authored Jan 21, 2024
1 parent 6fc1626 commit 9206b47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions wpilibc/src/main/native/include/frc/ADIS16448_IMU.h
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ class ADIS16448_IMU : public wpi::Sendable,
};

/** @brief Internal Resources **/
DigitalInput* m_reset_in;
DigitalOutput* m_status_led;
DigitalInput* m_reset_in = nullptr;
DigitalOutput* m_status_led = nullptr;

bool SwitchToStandardSPI();

Expand Down
4 changes: 2 additions & 2 deletions wpilibc/src/main/native/include/frc/ADIS16470_IMU.h
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,8 @@ class ADIS16470_IMU : public wpi::Sendable,
static constexpr double grav = 9.81;

/** @brief Resources **/
DigitalInput* m_reset_in;
DigitalOutput* m_status_led;
DigitalInput* m_reset_in = nullptr;
DigitalOutput* m_status_led = nullptr;

/**
* @brief Switches to standard SPI operation. Primarily used when exiting auto
Expand Down

0 comments on commit 9206b47

Please sign in to comment.