fork download
  1. struct reg_val {
  2. unsigned reg;
  3. unsigned val;
  4. };
  5.  
  6. struct reg_val faulty_array[] = {
  7. {0x5001, 0xff},
  8. {0x5580, 0x01},
  9. (0x5580, 0x02), //<- THIS LINE IS THE PROBLEM
  10. (0x5589, 0x00), //<- AND THIS LINE
  11. };
  12.  
  13. int main(void) { return 0; }
Success #stdin #stdout 0s 2924KB
stdin
Standard input is empty
stdout
Standard output is empty