Giter VIP home page Giter VIP logo

Comments (4)

ffissore avatar ffissore commented on June 8, 2024

Confirm. It's a bug. Preprocessed code shows that I'm putting prototypes INSIDE the struct!!!

#include <Arduino.h>
#line 1
#line 1 "sketch_sep15a.ino"
struct sensorData {
 sensorData(int iStatus, float iTemp, float iMinTemp);
 sensorData();
void setup();
void loop();
#line 2
  sensorData(int iStatus, float iTemp, float iMinTemp) : status(iStatus), temp(iTemp), minTemp(iMinTemp) {}
  sensorData() : status(-1), temp(1023.0), minTemp(1023.0) {}
  int status;
  float temp;
  float minTemp;
} ;

I'll ignore prototypes generation for function inside structs

from arduino-builder.

ffissore avatar ffissore commented on June 8, 2024

A nightly of the Arduino IDE is on the way. Check it out in 20 mins

from arduino-builder.

pfeerick avatar pfeerick commented on June 8, 2024

I've tried the "2015/0915 04:54" nightly build, can confirm this code works perfectly now. Thank you. btw, have thrown some of my more eclectic Arduino sketches at the latest nightly... and haven't managed to find anything else that breaks it yet ;)

from arduino-builder.

ffissore avatar ffissore commented on June 8, 2024

👍 🎱

from arduino-builder.

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.