pd-rs / crank

A wrapper for cargo to use creating games for the Playdate handheld gaming system.
MIT License
85 stars 15 forks source link

Silent failure / hang when `modem_path.exists()` is `false` #55

Open paulyoung opened 1 year ago

paulyoung commented 1 year ago

As discovered in https://github.com/pd-rs/crankstart/issues/41#issuecomment-1763542159.

This happens in at least 2 cases that I'm aware of:

  1. PLAYDATE_SERIAL_DEVICE isn't set and the hard-coded value is used.
  2. The device is locked.
boozook commented 1 year ago

In case of (2) device is locked, device is not connected so we can do nothing.