diff --git a/main/server.h b/main/server.h index d9f7aad..b914059 100644 --- a/main/server.h +++ b/main/server.h @@ -40,7 +40,7 @@ void parse_leds_query(char* query_string, size_t query_size) { return; } - struct gradient_point_t* points = malloc(gradient_point_count * sizeof(union led_t)); + struct gradient_point_t* points = malloc(gradient_point_count * sizeof(struct gradient_point_t)); for(int point = 0; point < gradient_point_count; ++point) { sprintf(query_key, "r%d", point);