The address of PB2REC is find in that function that stand this text
AC😛B2REC
I verify that and seem ok.
I add shutdown after _PB2Rec
_PB2Rec();
shutdown();
Now lens do not move out and camera display get dark earlier.
seem the function return immidiate.
So i add a msleep(2000); (see below)
then lens move out and camera shutdown without move in the lens.
Do you know if shutdown() command move in the lens if it is out ?
if yes then camera is crash in function _Rec2PB();
_set_control_event
// Best match: 93%
NSTUB(set_control_event, 0xff89bfe4)
seem a good find.do you know if this work all on
S95 ?
If so i can compare the asm source with that, maybe there is something really wrong.
int __attribute__((weak)) switch_mode_usb(int mode)
{
#ifdef CAM_CHDK_PTP
if ( mode == 0 ) {
_Rec2PB();
_set_control_event(0x80000902); // 0x10A5 ConnectUSBCable
} else if ( mode == 1 ) {
_set_control_event(0x902); // 0x10A6 DisconnectUSBCable
_PB2Rec();
msleep(2000);
shutdown();
} else return 0;
return 1;
#else
return 0;
#endif // CAM_CHDK_PTP