Skip to content

Commit 9b3a72f

Browse files
Add safety check for RgbLed capability with StatusLed
Co-authored-by: DennisMoschina <45356478+DennisMoschina@users.noreply.github.com>
1 parent f465d6b commit 9b3a72f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

open_wearable/lib/widgets/devices/device_detail/device_detail_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
249249
),
250250

251251
// MARK: Status LED control
252-
if (widget.device.hasCapability<StatusLed>()) ...[
252+
if (widget.device.hasCapability<StatusLed>() && widget.device.hasCapability<RgbLed>()) ...[
253253
PlatformText(
254254
"Control Status LED",
255255
style: Theme.of(context).textTheme.titleSmall,

0 commit comments

Comments
 (0)