Skip to content

Commit

Permalink
Fix Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Hossein-M98 committed Mar 29, 2023
1 parent 2d0d8de commit f1ba7be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DS1307.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ DS1307_WriteRegs(DS1307_Handler_t *Handler,
Buffer[0] += Len;
BytesCount -= Len;
}

return 0;
}

static int8_t
Expand All @@ -133,6 +135,8 @@ DS1307_ReadRegs(DS1307_Handler_t *Handler,

if (Handler->PlatformReceive(DS1307_ADDRESS, Data, BytesCount) < 0)
return -1;

return 0;
}


Expand Down

0 comments on commit f1ba7be

Please sign in to comment.