Device reverts to previously flashed code


I am starting on a new project where my device reads data from a couple sensors. My code filters the data and prints data in the terminal. I am using a photon from a previous project. My issue occurs when I flash new code to my device from safe mode or any mode for that matter. The photon works as expected and then after about 20-30seconds, the LED turns red then white and then starts running the code from the previous project.

I have tried updating device firmware and resetting the device.
I don’t think that I have to update anything in the web IDE right?

Has that Photon been assigned to a product (using PRODUCT_ID() in code or assigned via the console)?
That would cause the behaviour you are seeing.

You need to release the device from the product.

1 Like

Ok! I’ll give that a go and let you know how it goes.

@ScruffR Yes that solved the issue.Thanks!

1 Like