Skip to content

Conversation

@lou270
Copy link

@lou270 lou270 commented Dec 28, 2020

Hi, little fix for my project, maybe there are better ways to fix it.
I was working with ATtiny1614 (at 1MHz) when my DS18B20 was not responding with this library. I tried 4 and 8 MHz with success but 1MHz is too low for current implementation.
After investigating, the overhead of delayMicroseconds seems to be the cause. I replaced it with _delay_us from AVR libraries and it works like a charm.

@SpenceKonde
Copy link
Owner

I think this may want to be fixed in the core itself.... ie, have delayMicroseconds, as long as it's passed a constant, use _delay_us() instead of our implementation, Quite frankly, I don't know why don't do that in general.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants