Home > other >  MLX90614 program error
MLX90614 program error

Time:10-28

DataL=SMBus_ReceiveByte (ACK);//Read low data, the master must send ACK
DataH=SMBus_ReceiveByte (ACK);//Read high data, the master must send ACK
Pec=SMBus_ReceiveByte (NACK);//Read PEC byte, the master must send NACK


Error:
The SRC \ MX90614 c (217) : error: # 18: expected a ") "
DataL=SMBus_ReceiveByte (ACK);//Read low data, the master must send ACK
The SRC \ MX90614 c (217) : error: # 29: expected an expression
DataL=SMBus_ReceiveByte (ACK);//Read low data, the master must send ACK
The SRC \ MX90614 c (218) : error: # 18: expected a ") "
DataH=SMBus_ReceiveByte (ACK);//Read high data, the master must send ACK
The SRC \ MX90614 c (218) : error: # 29: expected an expression
DataH=SMBus_ReceiveByte (ACK);//Read high data, the master must send ACK
The SRC \ MX90614 c (219) : error: # 18: expected a ") "
Pec=SMBus_ReceiveByte (NACK);//Read PEC byte, the master must send NACK
The SRC \ MX90614 c (219) : error: # 29: expected an expression
Pec=SMBus_ReceiveByte (NACK);//Read PEC byte, the master must send NACK



Please dear brother told what is this error,, thank you!!!!!

CodePudding user response:

SMBus_ReceiveByte (ACK); ACK definition may have a problem to the normal cannot as a parameter

CodePudding user response:

ACK, NACK # define a problem, should be added a semicolon
  • Related