aboutsummaryrefslogtreecommitdiff
path: root/stm-rtc.c
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2017-10-11 21:26:27 -0400
committerPaul Selkirk <paul@psgd.org>2017-10-11 21:26:27 -0400
commitb159bf0bb24a99c7d3ff1b3855f840add63198e5 (patch)
tree9e3861da94bb69412025ef51db5a686d717d7a84 /stm-rtc.c
parent4026cce22d330d3b9c4b218dd2e19d4f60412e05 (diff)
Cleanup 'unused parameter' warnings, a couple of which are actual coding errors.
Diffstat (limited to 'stm-rtc.c')
-rw-r--r--stm-rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stm-rtc.c b/stm-rtc.c
index 3118d23..3f66ee4 100644
--- a/stm-rtc.c
+++ b/stm-rtc.c
@@ -96,7 +96,7 @@ HAL_StatusTypeDef rtc_read_bytes (const uint16_t i2c_addr, uint8_t *buf, const u
{
HAL_StatusTypeDef res;
- while (HAL_I2C_Master_Receive (&hi2c_rtc, i2c_addr, buf, len, 1000) != HAL_OK) {
+ while (HAL_I2C_Master_Receive (&hi2c_rtc, i2c_addr, buf, len, timeout) != HAL_OK) {
res = HAL_I2C_GetError (&hi2c_rtc);
if (res != HAL_I2C_ERROR_AF) {
return res;