vicocz / brickcontroller2

Cross platform application for controlling Lego creations using a bluetooth gamepad.
2 stars 0 forks source link

JK: catch exceptions thrown on non -existing devices #54

Closed J0EK3R closed 4 weeks ago

J0EK3R commented 1 month ago

I'm experimenting with different BC2 builds - including mine... In my project there are many more devices (using Bluetooth advertising). If I switch to your project, on app's startup trying to load my non-existing devices exceptions are thrown und the startup failed. With this simple try-catch-blocks the app is running very fine...

vicocz commented 1 month ago

In general this is valuable improvement for a developer. Just please I prefer to address it via code not a blind try/catch.

J0EK3R commented 3 weeks ago

Yes, your solution looks much better than mine! :)