PaulStoffregen / OneWire

Library for Dallas/Maxim 1-Wire Chips
http://www.pjrc.com/teensy/td_libs_OneWire.html
579 stars 382 forks source link

Add line for Atmega4808 #99

Open andonoc opened 2 years ago

andonoc commented 2 years ago

Hello, sorry but i cant use GIT properly and i don't know how to make a pull request. For using a ATMEGA4808 i changed line 18 in util/OneWire_direct_gpio.h to

if defined(AVR_ATmega4809) || (AVR_ATmega4808)

after this change the library works for me.

sameSEA commented 1 year ago

Thank this, it saved me time! With Platformio and MegaCoreX that line 18 should be: #if defined(__AVR_ATmega4809__) || defined(__AVR_ATmega4808__)

or just

if defined(MEGACOREX)