Skip to main content
added 88 characters in body
Source Link
chrisl
  • 16.6k
  • 2
  • 18
  • 27

C:\Users\system3\AppData\Local\Temp\arduino_modified_sketch_307616\sketch_dec13a.ino: In function 'void loop()':

sketch_dec13a:34:25: error: initializer fails to determine size of 'data'

C:\Users\system3\AppData\Local\Temp\arduino_modified_sketch_307616\sketch_dec13a.ino: In function 'void loop()':

sketch_dec13a:34:25: error: initializer fails to determine size of 'data'

     byte data[] = sizeof(OutData);

                         ^

sketch_dec13a:34:25: error: array must be initialized with a brace-enclosed initializer

sketch_dec13a:60:1: error: a function-definition is not allowed here before '{' token

 {

 ^ 

sketch_dec13a:77:1: error: expected '}' at end of input

 }

 ^

Multiple libraries were found for "Crc16.h"
 Used: C:\Users\system3\Documents\Arduino\libraries\Crc16-master
exit status 1
initializer fails to determine size of 'data'

sketch_dec13a:34:25: error: array must be initialized with a brace-enclosed initializer

sketch_dec13a:60:1: error: a function-definition is not allowed here before '{' token

{

^

sketch_dec13a:77:1: error: expected '}' at end of input

}

^

Multiple libraries were found for "Crc16.h" Used: C:\Users\system3\Documents\Arduino\libraries\Crc16-master exit status 1 initializer fails to determine size of 'data'

C:\Users\system3\AppData\Local\Temp\arduino_modified_sketch_307616\sketch_dec13a.ino: In function 'void loop()':

sketch_dec13a:34:25: error: initializer fails to determine size of 'data'

 byte data[] = sizeof(OutData);

                     ^

sketch_dec13a:34:25: error: array must be initialized with a brace-enclosed initializer

sketch_dec13a:60:1: error: a function-definition is not allowed here before '{' token

{

^

sketch_dec13a:77:1: error: expected '}' at end of input

}

^

Multiple libraries were found for "Crc16.h" Used: C:\Users\system3\Documents\Arduino\libraries\Crc16-master exit status 1 initializer fails to determine size of 'data'

C:\Users\system3\AppData\Local\Temp\arduino_modified_sketch_307616\sketch_dec13a.ino: In function 'void loop()':

sketch_dec13a:34:25: error: initializer fails to determine size of 'data'

     byte data[] = sizeof(OutData);

                         ^

sketch_dec13a:34:25: error: array must be initialized with a brace-enclosed initializer

sketch_dec13a:60:1: error: a function-definition is not allowed here before '{' token

 {

 ^ 

sketch_dec13a:77:1: error: expected '}' at end of input

 }

 ^

Multiple libraries were found for "Crc16.h"
 Used: C:\Users\system3\Documents\Arduino\libraries\Crc16-master
exit status 1
initializer fails to determine size of 'data'
added 675 characters in body
Source Link

My Error is :

C:\Users\system3\AppData\Local\Temp\arduino_modified_sketch_307616\sketch_dec13a.ino: In function 'void loop()':

sketch_dec13a:34:25: error: initializer fails to determine size of 'data'

 byte data[] = sizeof(OutData);

                     ^

sketch_dec13a:34:25: error: array must be initialized with a brace-enclosed initializer

sketch_dec13a:60:1: error: a function-definition is not allowed here before '{' token

{

^

sketch_dec13a:77:1: error: expected '}' at end of input

}

^

Multiple libraries were found for "Crc16.h" Used: C:\Users\system3\Documents\Arduino\libraries\Crc16-master exit status 1 initializer fails to determine size of 'data'

My Error is : initializer fails to determine size of 'data'

My Error is :

C:\Users\system3\AppData\Local\Temp\arduino_modified_sketch_307616\sketch_dec13a.ino: In function 'void loop()':

sketch_dec13a:34:25: error: initializer fails to determine size of 'data'

 byte data[] = sizeof(OutData);

                     ^

sketch_dec13a:34:25: error: array must be initialized with a brace-enclosed initializer

sketch_dec13a:60:1: error: a function-definition is not allowed here before '{' token

{

^

sketch_dec13a:77:1: error: expected '}' at end of input

}

^

Multiple libraries were found for "Crc16.h" Used: C:\Users\system3\Documents\Arduino\libraries\Crc16-master exit status 1 initializer fails to determine size of 'data'

added 1 character in body
Source Link

I am trying to assign the serial.readwrite(OutData[i]) to byte data[]. Can anyone help me assign it.

I am trying to assign the serial.read(OutData[i]) to byte data[]. Can anyone help me assign it.

I am trying to assign the serial.write(OutData[i]) to byte data[]. Can anyone help me assign it.

deleted 10 characters in body
Source Link
chrisl
  • 16.6k
  • 2
  • 18
  • 27
Loading
Source Link
Loading