reticulatedpines / magiclantern_simplified

A Git based version of Magic Lantern, for those unwilling or unable to work using Mercurial. The vast majority of branches have been removed, with those thought to be important brought in individually and merged.
GNU General Public License v2.0
142 stars 50 forks source link

RP.160: enable CHDK PTP commands #59

Open coon42 opened 2 years ago

coon42 commented 2 years ago

This PR enables CHDK PTP commands for RP.160. This allows interacting with the camera via ptpcam tool. The following CHDK commands were testes successfully yet:

All other commands are untested and not recommended to be used, once they have verified to work.

reticulatedpines commented 2 years ago

Does it make sense to make this the default config on upstream? Feels like it should be some build option maybe, since nothing else uses it.

coon42 commented 2 years ago

I mainly want to use this to update autoexec.bin via PTP without having to swap my SD card all the time. This works totally fine but not all ptpcam functions are fully tested yet, so I can't tell that it is 100% safe yet.

I agree that having some kind of build option could be a solution here, as PTP gets acticated as soon as ptp.c and ptp-chdk.c are compiled and linked in.