You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sources/led-drivers/pwm/rpi_pio/DriverRpiPio.cpp
+16-15Lines changed: 16 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -82,25 +82,25 @@ int DriverRpiPio::open()
82
82
if (!fi.exists())
83
83
{
84
84
Error(_log, "The device does not exists: %s", QSTRING_CSTR(_output));
85
-
Error(_log, "Must be configured first like for ex: dtoverlay=ws2812-pio,gpio=18,num_leds=30,is_rgbw=1 in /boot/firmware/config.txt. Only RPI5+");
85
+
Error(_log, "Must be configured first like for ex: dtoverlay=ws2812-pio,gpio=18,num_leds=30,rgbw in /boot/firmware/config.txt. rgbw only for sk6812 RGBW. num_leds is your LED number. Only RPI5+");
86
86
return retval;
87
87
}
88
88
89
89
if (!fi.isWritable())
90
90
{
91
-
Error(_log, "The device is not writable. Are you root or have write rights for: %s", QSTRING_CSTR(_output));
91
+
Error(_log, "The device is not writable. Are you root or your user has write access rights to: %s", QSTRING_CSTR(_output));
92
92
return retval;
93
93
}
94
94
95
-
_renderer = std::make_unique<QFile>(_output);
96
-
if (!_renderer->open(QIODevice::WriteOnly))
95
+
QFilerenderer(_output);
96
+
if (!renderer.open(QIODevice::WriteOnly))
97
97
{
98
-
_renderer = nullptr;
99
98
Error(_log, "Cannot open the device for writing: %s", QSTRING_CSTR(_output));
0 commit comments