I made this simple code but I'm getting the following error
exit status 1
'RGB' does not name a type
typedef struct
RGB
{
double r;
double g;
double b;
};
RGB led;
RGB func(){
RGB temp;
return RGB;
}
I am not getting the error on "RGB led" but just on the function. Does anyone know a solution for this? Thanks!