Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes the following compilation errors:
discover_fake_DS18B20.ino: In function 'void setup()': discover_fake_DS18B20.ino:94:18: error: ISO C++ forbids
converting a string constant to 'char*' [-Werror=write-strings]
94 | char *file = FILE;
| ^~~~~~~~
discover_fake_DS18B20.ino: In function 'void loop()':
discover_fake_DS18B20.ino:277:23: error: comparison is always true
due to limited range of data type [-Werror=type-limits]
277 | ((buffer2[6] >= 0x00) && (buffer2[6] <= 0x10)) ){
| ~~~~~~~~~~~^~~~~~~
classify_fake_DS18B20.ino:328:38: error: comparison of promoted
bitwise complement of an unsigned value with unsigned
[-Werror=sign-compare]
328 | if ((sp21b == ~sp21) && (sp22b == ~sp22)) {
| ~~~~~~^~~~~~~~
328 | if ((sp21b == ~sp21) && (sp22b == ~sp22)) {
| ~~~~~~^~~~~~~~