OneWire library throwing a boatload of errors

Can you reproduce it?
Should I somehow contact @suda or will he see these posts?

Thanks!

Yes, my Web IDE behaves just the same.

By using the notation @userName he’ll already get a notification that his name was mentioned.

It looks like a bug in our Arduino Wiring preprocessor. You can disable it by adding:

#pragma SPARK_NO_PREPROCESSOR

in the beginning of the file (you can have newlines before it ;)).

Thanks, suda! Is there no negative side effect if I add this?
Why is this happening only with the OneWire library?

Side effects are, that you have to add #include "application.h" to your .INO file (but this might come with any of your other #include statements already).
And you need to add function prototypes if you aren’t already declaring your functions before their first calling statement.

Otherwise no.

I do the above anyway :smile:
Thank you!

1 Like