However, the project does not compile.
In my html file, the function call looks like this:../.build/generated/lib_webserver/web_files.c:46:41: error: too few arguments to function call, single argument 'buf' was not specified
case 0: return webGetOutputGainValue();
.././src\web_server_conf.h:24:1: note: 'webGetOutputGainValue' declared here
int webGetOutputGainValue(char buf[]);
Code: Select all
<input id="sGainOut" type="range" name="gainOutSlider" min="-30" max="0"
value="{% webGetOutputGainValue(buf) %}">
Code: Select all
int webGetOutputGainValue(char buf[]);
Code: Select all
int webGetOutputGainValue(char buf[]){
unsigned uiLen = sprintf(buf, "%f", some_value);
return uiLen;
}
Also, where is buf declared? couldnt find any definition within the webserver example.