westfw:
Presumably you have an enum somewhere:enum usb_commands {
USB_REQ_GET_STATUS = 0;
... more
};
This is two separate ways of defining constants. Note that you don't REALLY have a problem, since both values are the same; pick one and get rid of the other. Offhand, I'd say that the "webcam" file has no business defining primitive USB constants, and should simply be including the USB_protocol.h file to get those definitions.
Thanks, I can see where I went wrong analyzing this issue.
Basically enum symbols cannot be used as #define symbols, if I remove the #defines I would have to change the code to use enum.
I cannot try it right now, but will do it later just to see the compiler output.
I appreciate your reply, It really helps to understand enum "definitions / symbols " in relations to #define.
Thanks again
Jim