- Add PRODUCT_ID 0x16EA to Cloud II Wireless device support
- Cloud Flight S uses the same protocol as Cloud II Wireless
- Update README.md with Cloud Flight S in supported devices list
- Add udev rules for Cloud Flight S (idProduct=16ea)
- Fix prepare_write() to handle devices that don't support get_input_report
- Fix is_none_or compatibility issue for older Rust versions
Changed DeviceState Display trait to use to_string_with_readonly_info()
instead of to_string_with_padding().
This allows CLI users to see which features are hardware-limited before
attempting to use them, providing helpful context and reducing confusion
about why certain commands might not work.
The tray application continues to use to_string_with_padding() since
it's display-only and doesn't allow user interaction.
Implements Option A as discussed in PR #14
The tray application is display-only and doesn't allow users to change
any settings. Therefore, showing (read-only) markers doesn't provide
value since all fields are implicitly read-only in this context.
Changed to_string_with_readonly_info() back to to_string_with_padding()
for the tray display.
Addresses PR #14 review comment from @LennardKittner
Create helper function get_display_data() that returns the device data
array with 4-tuple format (prefix, value, suffix, readonly_flag).
Both to_string_with_padding() and to_string_with_readonly_info() now
call this helper function:
- to_string_with_padding() ignores the readonly flag
- to_string_with_readonly_info() uses it to add (read-only) markers
This eliminates ~100 lines of duplicated code and makes the codebase
easier to maintain.
Addresses PR #14 review comment from @LennardKittner