Skip to content

error: format '%lu' expects argument of type 'long unsigned int' #4

@DarekLin

Description

@DarekLin

Describe the bug

I met problem in your exapmle sketch during the compilation:

Arduino\libraries\RemoteDebug\src\RemoteDebug.cpp:1931:117: error: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'uint32_t {aka unsigned int}' [-Werror=format=]

DebugWS.printf("$app:V:%s:%s:%c:%lu:%c:N\n", version.c_str(), board.c_str(), features, getFreeMemory(), dbgEnabled);

Arduino Information:

  • OS: windows 10
  • IDE Arduino IDE
  • IDE Version 1.8.10
  • Board: ESP32 dev module

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions