Web IDE Build Stopped Working

I’ve got an app that has stopped working. It is failing on:

Particle.variable("vbat", cellVoltage);

The error given is:

powershield.cpp:22:42: error: no matching function for call to 'CloudClass::variable(const char [5], double&)'
     // This sets up the fuel gauge

Has something changed in the libraries that might cause this?

I’m new to Particle so willing to provide anything you might suggest to help troubleshoot. I’ve written many lines of code on Arduino and have developed a few libraries of my own. I’m not a total novice; I’ve got 4 photons up and running and have called functions and retrieved variables from iOS apps I’ve written.

If I comment out the Particle.variable lines the code verifies as correct. Something appears to have changed. Here’s the program.

#include "Particle.h"
#include "PowerShield/PowerShield.h"

double cellVoltage = 0;
double stateOfCharge = 0;

PowerShield batteryMonitor;

void setup() {

    // This essentially starts the I2C bus
    // This sets up the fuel gauge
    // Wait for it to settle down
    Particle.variable("vbat", cellVoltage);
    Particle.variable("vsoc", stateOfCharge);

void loop() {

    // Read the voltage of the LiPo
    cellVoltage = batteryMonitor.getVCell();
    // Read the State of Charge of the LiPo
    stateOfCharge = batteryMonitor.getSoC();
    // Send the Voltage and SoC readings over serial


Try the “old” syntax

    Particle.variable("vbat", &cellVoltage, DOUBLE);
    Particle.variable("vsoc", &stateOfCharge, DOUBLE);

Maybe you altered the target firmware in your IDE by accident to a version that didn’t support the new syntax. Try checking this too.

That was it. Don’t know when I hit that drop down but everything back to normal. Much thanks!!!