Skip to content

Commit fa7c962

Browse files
author
Nathan Seidle
committed
Add return values to functions that were missing them.
1 parent c5e9ce1 commit fa7c962

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ICM_20948.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,11 +722,13 @@ ICM_20948_Status_e ICM_20948::getMagnetometerData(ICM_20948_AGMT_t *pagmt)
722722
ICM_20948_Status_e ICM_20948::read(uint8_t reg, uint8_t *pdata, uint32_t len)
723723
{
724724
status = ICM_20948_execute_r(&_device, reg, pdata, len);
725+
return (status);
725726
}
726727

727728
ICM_20948_Status_e ICM_20948::write(uint8_t reg, uint8_t *pdata, uint32_t len)
728729
{
729730
status = ICM_20948_execute_w(&_device, reg, pdata, len);
731+
return (status);
730732
}
731733

732734
// I2C

0 commit comments

Comments
 (0)