Hi,
I've got Ixus60 and wanted to use Remote Shooting via USB. CCouldn't find working implementaion, so I looked in chdk source and was really surprised about these easy to install and really good working toolchain

)
I recoginzed that the USB Pwr Bit is located in
physw_status[1] (0x8000000)
I introduced
#define USB_MASK (0x8000000)
and modified
int get_usb_power(int edge)
{
int x;
if (edge) {
if(physw_status[1] & USB_MASK)
return 1;
//return remote_key;
};
x = usb_power;
usb_power = 0;
return x;
}
now USB rmt is working, but I'm quite sure that this is not really good implementation. I've looked into sd300 & sd780 implementation, but these seem to be quite different.
How is a good way to include that functionality in a clean way, so that it could be pushed back to chdk repos!?
Is there any doc or link that may help!?
Thanks in advance.
Cheers.