Skip to content

Commit

Permalink
Merge pull request #122 from bstbud/bf_sensor_ar
Browse files Browse the repository at this point in the history
fix bug in parseActivity api with wrong parameter type
  • Loading branch information
sebromero authored Mar 21, 2024
2 parents c495994 + a82465f commit ec8e566
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Arduino_BHY2Host/src/sensors/DataParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ void DataParser::parseData(SensorDataPacket& data, float& value, float scaleFact

}

void DataParser::parseActivity(SensorDataPacket& data, uint16_t value) {
void DataParser::parseActivity(SensorDataPacket& data, uint16_t& value) {
value = data.getUint16(0);
}
}
2 changes: 1 addition & 1 deletion Arduino_BHY2Host/src/sensors/DataParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class DataParser {
static void parseBSEC(SensorLongDataPacket& data, DataBSEC& vector);
static void parseBSECLegacy(SensorLongDataPacket& data, DataBSEC& vector);
static void parseData(SensorDataPacket& data, float& value, float scaleFactor, SensorPayload format);
static void parseActivity(SensorDataPacket& data, uint16_t value);
static void parseActivity(SensorDataPacket& data, uint16_t& value);
};

#endif

0 comments on commit ec8e566

Please sign in to comment.