technoblogy / ulisp-esp

A version of the Lisp programming language for ESP32-based boards.
MIT License
110 stars 37 forks source link

Bug in with-client argument count configuration, with solution. #85

Closed hanoixan closed 2 months ago

hanoixan commented 2 months ago

I couldn't get the Wi-Fi client example running, as it kept erroring with Error: 'with-client' too many arguments.

On investigation, I replaced line 5791 in ulisp-esp.ino: { string212, sp_withclient, 0313, doc212 }, with { string212, sp_withclient, 0317, doc212 }, where the 7 matches the octal mask at line 5871, giving this a min of 1 argument, and an unbounded max number of arguments for the forms.

technoblogy commented 2 months ago

(Your post seemed to attract a flood of spam - sorry about that).

Oh yes, you're correct. I'll fix that in a future release; thanks for spotting it.

Regards, David