Skip to content

Tone.cpp stops compile when TCCR0A/TCCR0B defined and WGM01 not defined #2923

Closed
@jipp

Description

@jipp

In case using an own pins_arduino.h for the ATtiny861 the compile stops in Tone.cpp.

This can be avoided adding an additional "#if defined" statement which catches the case of undefined WGM01:

Tone.cpp line 154:

if defined(TCCR0A) && defined(TCCR0B)

->

if defined(TCCR0A) && defined(TCCR0B) && defined(WGM01)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions