Coder Social home page Coder Social logo

Comments (5)

jockm avatar jockm commented on May 25, 2024

This was mostly user error, but it is worth noting that #2 is still valid, since if you have the board set incorrectly the #pragma won't work

from duetimer.

ivanseidel avatar ivanseidel commented on May 25, 2024

The error isn't showing because the pragma's message only "really" is sent to the console if NOT on the header. Also, __arm__ is an internal definition, and shouldn't be defined manually.

This is a ploblem caused by the incorrect setup of arduino enviroment (wrong board), and the message is optional, but would be good to have a warning working.

I will Leave this Issue open, for fixing the message. It should appear when compiling for any other board.

from duetimer.

jockm avatar jockm commented on May 25, 2024

The #error {msg} preprocessor directive would be a better way of communicating the header than the pragma. As you can see the AVR compiler doesn''t support pragma message by #error is part of the standard.

As for __arm__ that was an experiment, as I said, user error

from duetimer.

ivanseidel avatar ivanseidel commented on May 25, 2024

Fix the code and send a commit (remember to write fixes #22

from duetimer.

jockm avatar jockm commented on May 25, 2024

Done

from duetimer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.