Skip to content

command.scout.ack assumes the first arg is a plain command name #195

@alexglow

Description

@alexglow

Entered in Arduino IDE:
command.scout.ack("led.green(500)", 11, "led.green", 500);

It works as expected (both Scouts' LEDs flash green, 500ms). However, it returns an error:
missing )

According to Jeremie:
It is trying to run led.green(500)(1,rssi)
Just assumes the first arg is a plain command name, it can detect a ( and skip that

(Which is why, if you store led.green(500) as a command and substitute that into command.scout.ack, you don't get an error.)

Cheers!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions