Skip to content

sdram.h gets duplicate class SDRAMClass if included twice #808

Closed
@dav322

Description

@dav322

file path on my machine is:
C:\Users\david\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.10\libraries\Portenta_SDRAM\src\SDRAM.h
need to add
#ifndef sdramh
#define sdramh
at beginning of file
and
#endif
at end of file

To reproduce
include "sdram.h" twice

Expected behavior
not generate linker error

Arduino IDE version 2.2.1 updated to nightly build 12/14/2023

Operating system
Windows

Operating system version
windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    M7bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions