indi
indi copied to clipboard
Fix infinite loop when read=0
Fixed infinite loop bug when serial devices lose power during communication. Added retry mechanism (3 attempts with 10ms delays) to detect zero-byte reads and exit gracefully, preventing unresponsive drivers and allowing clients to disconnect properly.