magiclantern_simplified
magiclantern_simplified copied to clipboard
RP.160: enable CHDK PTP commands
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:
- download
- upload
- m (read memory)
All other commands are untested and not recommended to be used, once they have verified to work.
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.
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.