Skip to content

Commit 8c6689f

Browse files
authored
Merge pull request #5 from bburdette/master
add uint8_t casts
2 parents 2e271dd + cd3fee8 commit 8c6689f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SparkFun_SHTC3.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ SHTC3_Status_TypeDef SHTC3::checkID()
181181
return exitOp(retval, __FILE__, __LINE__);
182182
}
183183

184-
numBytesRx = _wire->requestFrom(SHTC3_ADDR_7BIT, numBytesRequest);
184+
numBytesRx = _wire->requestFrom((uint8_t)SHTC3_ADDR_7BIT, numBytesRequest);
185185
if (numBytesRx != numBytesRequest)
186186
{
187187
exitOp(SHTC3_Status_Error, __FILE__, __LINE__);
@@ -311,7 +311,7 @@ SHTC3_Status_TypeDef SHTC3::update()
311311
case SHTC3_CMD_CSE_RHF_LPM:
312312
case SHTC3_CMD_CSE_TF_NPM:
313313
case SHTC3_CMD_CSE_TF_LPM: // Address+read will yield an ACK and then clock stretching will occur
314-
numBytesRx = _wire->requestFrom(SHTC3_ADDR_7BIT, numBytesRequest);
314+
numBytesRx = _wire->requestFrom((uint8_t)SHTC3_ADDR_7BIT, numBytesRequest);
315315
break;
316316

317317
case SHTC3_CMD_CSD_RHF_NPM:
@@ -439,4 +439,4 @@ float SHTC3_raw2Percent(uint16_t RH)
439439
return 100 * ((float)RH / 65535);
440440
}
441441

442-
void SHTC3_exitOp_Callback(SHTC3_Status_TypeDef status, bool inProcess, const char *file, uint16_t line) {} // Empty implementation. You can make your own implementation
442+
void SHTC3_exitOp_Callback(SHTC3_Status_TypeDef status, bool inProcess, const char *file, uint16_t line) {} // Empty implementation. You can make your own implementation

0 commit comments

Comments
 (0)