Merge remote-tracking branch 'origin/fix-uninitialized-var-scope' into integration_2023_w32
This commit is contained in:
@@ -193,7 +193,9 @@ void websrv_setpoint(int x, int y, websrv_scopedata_msg_t *msg)
|
|||||||
msg->data_xy[msg->data_xy[0]] = (int16_t)y;
|
msg->data_xy[msg->data_xy[0]] = (int16_t)y;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
static void commonGraph(OAIgraph_t *graph, int type, FL_Coord x, FL_Coord y, FL_Coord w, FL_Coord h, const char *label, FL_COLOR pointColor) {
|
static void commonGraph(OAIgraph_t *graph, int type, FL_Coord x, FL_Coord y, FL_Coord w, FL_Coord h, const char *label, FL_COLOR pointColor)
|
||||||
|
{
|
||||||
|
memset(graph, 0, sizeof(*graph));
|
||||||
if (type==WATERFALL) {
|
if (type==WATERFALL) {
|
||||||
graph->waterFallh=h-15;
|
graph->waterFallh=h-15;
|
||||||
graph->waterFallAvg=malloc(sizeof(*graph->waterFallAvg) * graph->waterFallh);
|
graph->waterFallAvg=malloc(sizeof(*graph->waterFallAvg) * graph->waterFallh);
|
||||||
|
|||||||
Reference in New Issue
Block a user