Update local build directory

Maybe I just overlook something.

I try to compile this code with (make PLATFORM=photon APP=test_battery)

I get errors when building on commands that are supported since 0.6.1.

applications/test_battery/application.cpp: In function 'void setup()':
applications/test_battery/application.cpp:24:23: error: 'class TimeClass' has no member named 'isValid'
   Serial.println(Time.isValid());

I had the assumption that my firmware in the directory was up to date.

I did run the following lines in the terminal in the firmware directory.

git clone https://github.com/spark/firmware.git
git checkout latest

The latest gives me the confirmation:

Already on 'latest'
Your branch is up-to-date with 'origin/latest'.

My Photons are already running the right firmware (done with the Particle update), although I think that doesn’t matter, since I’m just compiling.

Can you try make clean all ...?
You may also want to look at this post

2 Likes

Thanks. I did make clean all and I switched to the master branch. Now it compiles fine.

1 Like