Skip to content

[standard mismatch] "Query Firmware" returns file name WITH extension #421

Open
@martin-eden

Description

@martin-eden

Hello, protocol.md says

The firmware name to be reported should be exactly the same as the name of the Firmata client file, minus the file extension. So for StandardFirmata.ino, the firmware name is: StandardFirmata.

But indeed file name is passed with extension.

I think it may be fixed by modifying
extension = strstr(name, ".cpp");
to

extension = strstr(name, ".cpp");
if (!extension)
  extension = strstr(name, ".ino");

Issue present in StandardFirmata from Arduino IDE v1.8.8.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions