This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

error: "USB.C(268): error C213: left side of asn-op not an lvalue"

hello
i got the following error message after compilation:
"USB.C(268): error C213: left side of asn-op not an lvalue"

it seems to be not that difficult, but i'm running out of time with my project and cant see the possible reason.
thanks for your help

code:

void TD_Poll(void)             // Called repeatedly while the device is idle
{
   unsigned char testbuffer[64];
   unsigned char testbuffer_old[64];

   if(testbuffer != testbuffer_old) /only write testbuffer to ram if it changed
   {

   FIFORead(testbuffer);
   WriteToHPIA(0x10041000);
   FIFOWrite(testbuffer);
   testbuffer_old = testbuffer; //error here
   }
}

0