Skip to content

Commit 253360f

Browse files
committed
Small reformat of default pointer assignment
1 parent 352c1d5 commit 253360f

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

src/sfe_i2c.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2424

2525
#define maxI2CBufferLength 32
2626
// What we use for transfer chunk size
27-
const static uint16_t buffSize = maxI2CBufferLength;
28-
29-
SfeI2C::SfeI2C(void) : _i2cPort{nullptr}
30-
{
31-
}
27+
#define buffSize maxI2CBufferLength;
3228

3329
bool SfeI2C::init(TwoWire &wirePort, bool bInit)
3430
{

src/sfe_i2c.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class SfeI2C : public SfeBus
3636
{
3737
public:
3838
/// @brief Constructor
39-
SfeI2C(void);
39+
SfeI2C(void) : _i2cPort(nullptr) {};
4040

4141
/// @brief Method sets up the required I2C settings. This function
4242
/// provides a default I2C Port.

src/sfe_spi.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2626
#include "sfe_spi.h"
2727
#define SPI_READ 0x80
2828

29-
SfeSPI::SfeSPI(void) : _spiPort{nullptr}
30-
{
31-
}
32-
3329
bool SfeSPI::init(SPIClass &spiPort, SPISettings &busSPISettings, uint8_t cs, bool bInit)
3430
{
3531

src/sfe_spi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class SfeSPI : public SfeBus
3939
{
4040
public:
4141
/// @brief Constructor
42-
SfeSPI(void);
42+
SfeSPI(void) : _spiPort(nullptr) {};
4343

4444
/// @brief Method sets up the required SPI settings. This function
4545
/// provides a default SPI Port.

0 commit comments

Comments
 (0)