WS2812ESP32 example name is configurable and default name shortened

This commit is contained in:
Tomáš Pilný
2023-08-31 16:18:09 +02:00
committed by Xiang Xiao
parent 21e7a9dc9e
commit ecded726ce
4 changed files with 11 additions and 3 deletions

View File

@@ -163,7 +163,8 @@ int main(int argc, FAR char *argv[])
if (fd < 0)
{
fprintf(stderr,
"ws2812esp32rmt: open %s failed: %d\n",
"%s: open %s failed: %d\n",
argv[0],
dev_name,
errno);
goto errout_with_dev;