Hi all,
I hardwired the shutter-button of two Ixus 860 to synchronize both cams without external USB button.
Then I wanted to rewrite the synch routine 'wait_until_remote_button_is_released' (in kbd.c) to get a better synchronisation compared to hard-wiring only.
Here is my attempt:
void wait_until_remote_button_is_released(void)
{
asm volatile ("STMFD SP!, {R0-R11,LR}\n"); // store R0-R11 and LR in stack
#define DELAY_TIMEOUT 10000
#define KBD_MASK 0x00000003 // KEY_SHOOT_FULL IXUS 860
int tick;
long z, *x;
debug_led(1);
_kbd_pwr_on();
tick=get_tick_count();
do
{
z = physw_status[2] & KBD_MASK;
_kbd_read_keys_r2(physw_status);
}
while( (!z) && ((int)get_tick_count()-tick < DELAY_TIMEOUT));
_kbd_pwr_off();
debug_led(0);
asm volatile ("LDMFD SP!, {R0-R11,LR}\n");
}
I set the cameras under Remote-parameters to:
Enable Remote: yes
Enable Synchable remote: yes
Enables synch: yes
If I press the shutter button half, the cameras are focusing.
If I the press the shutter-button full then the blue led switches to on, so my rewritten function is executed.
But if I release the shutter button the camera does not shoot. It still waits until the 10 seconds of the loop are finished, then it takes the photo. I want to exit the loop if the shutter-button is released, but it does not work
What in my function I did wrong?
Thanks for any help!