Skip to content

Commit

Permalink
Fix a mistake in getTemperatureOffset
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulZC authored Aug 22, 2022
1 parent 3ededc5 commit ea3b187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SparkFun_SCD30_Arduino_Library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ float SCD30::getTemperatureOffset(void)
int16_t signed16;
uint16_t unsigned16;
} signedUnsigned; // Avoid any ambiguity casting int16_t to uint16_t
signedUnsigned.signed16 = response;
signedUnsigned.unsigned16 = response;

return (((float)signedUnsigned.signed16) / 100.0);
}
Expand Down

0 comments on commit ea3b187

Please sign in to comment.