-
Notifications
You must be signed in to change notification settings - Fork 161
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
Update ReadWrite.ino #73
Conversation
Travis tests have failedHey @deepaklorkhatri007, TravisBuddy Request Identifier: e9d27ce0-5572-11ea-850c-e5458713aaa0 |
Hi, how can I create a local setup for fixing the issue of formatting in examples? |
@deepaklorkhatri007 in most cases, including this one (trailing space on line 44 of I think it would be nice to fix the trailing space in the example, but you don't need to worry about the non-compliant formatting in Just in case you're interested in the details, or don't want to use the Arduino IDE: The same formatter tool is used for this CI build as the Arduino IDE: Artistic Style. You can download it here: The configuration file we use for the CI builds is available here: The documentation for Artistic Style is here: If you wanted to format all .ino files recursively from the current directory, using the examples_formatter.conf configuration file, without making backups, the command would look something like this:
|
Hi @per1234, thank you so much for the details.
yes, the build was failing before my pull request.
I will try to fix the issue :) |
All checks are passing now, I am using Fedora Linux and
For fixing the formatting we can directly use the command suggested by @per1234 (I did it one by one to get to know the tool better)
Now I want to fix the code redundancy of the error message if everybody agrees on it. Basically I am going to create one function which we can use to see if the initialization is successful or not. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 Thank you @deepaklorkhatri007 for your contribution 😉
There is an incompatibility issue for showing the initialization error message for the examples.
The example
CardInfo.ino
has this code (which i personally like)While the other example, like the
ReadWrite.ino
uses this codeIt's a better idea to make one function in the library for doing this instead of writing similar code in all the examples. I will work on updating the library code if others agree with me on this :)