-
Notifications
You must be signed in to change notification settings - Fork 709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue : Should react to the case of IIC read failure (应该对IIC读取失败的情况做出反应) #281
Comments
What RTC module is being used? What Arduino sketch is being run? The validity of the I2C connection is checked in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the read fails, you should return a DateTime error, which is not good for your program.
write_then_read returns false on failure and true on success.
The library should also handle this.
It looks like this.
Chinese (中文) :
如果读取失败,应该会出现返回DateTime错误的情况,这样子对程序不利。
而 write_then_read 在操作失败以后会返回 false , 成功后会返回true。
库中也应该对这个进行处理 。
像这样子。
The text was updated successfully, but these errors were encountered: