Commit 3495fb1
Read the serial line high when no link peer is connected
Peer2PeerSerialEndpoint.sendBit() returned 0 when no peer was attached,
so an internal-clock serial transfer with no cable filled SB with 0x00.
An unconnected link cable actually floats high, so the null endpoint
(and real hardware) return 0xFF. Single-player sessions always wire a
Peer2PeerSerialEndpoint for potential netplay, so every link-aware game
saw a phantom partner: Alleyway runs a serial handshake at stage start,
misdetected a connected Game Boy, and hung waiting for it with the
paddle frozen - the reported input failure (issue #63). sendBit() now
returns 1 when peer is null, matching the null endpoint; the connected
path is unchanged so netplay is unaffected.
Full battery and the controller/netplay suites stay green.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J1wLWscyUGS7CFwc3CjJR81 parent bc194b4 commit 3495fb1
1 file changed
Lines changed: 5 additions & 1 deletion
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
0 commit comments