MLX90614 icon indicating copy to clipboard operation
MLX90614 copied to clipboard

write16 function,

Open bulentperktas opened this issue 8 years ago • 3 comments

void MLX90614::write16(uint8_t cmd, uint16_t data);

this function seems not working, i think that the conversation must be finish at the end of function,

_rwError |= (1 << Wire.endTransmission(false)) >> 1;

instead of;

_rwError |= (1 << Wire.endTransmission(true)) >> 1;

any idea? thanks,

bulentperktas avatar May 05 '16 23:05 bulentperktas

You may be correct.

I have not had failures in any applications that use this library. I only have one master device so it should make no difference. If you have multiple masters then this will fail.

Cheers,

JFF

From: bulentperktas [mailto:[email protected]] Sent: Friday, 6 May 2016 9:32 AM To: jfitter/MLX90614 Subject: [jfitter/MLX90614] write16 function, (#1)

void MLX90614::write16(uint8_t cmd, uint16_t data);

this function seems not working, i think that the conversation must be finish at the end of function,

_rwError |= (1 << Wire.endTransmission(false)) >> 1;

instead of;

_rwError |= (1 << Wire.endTransmission(true)) >> 1;

any idea? thanks,

You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/jfitter/MLX90614/issues/1 https://github.com/notifications/beacon/AGCsywwV7_o_p4_JZsey_J_6Srue3_0zks5p -n3qgaJpZM4IYelR.gif

__________ Information from ESET NOD32 Antivirus, version of virus signature database 13447 (20160506) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

jfitter avatar May 06 '16 09:05 jfitter

Thanks, Bülent PERKTAŞ

bulentperktas avatar Sep 29 '16 14:09 bulentperktas

Really dangerous. I really recommend to corect it to Wire.endTransmission(true))

romik2206 avatar Mar 26 '17 16:03 romik2206