Plus Code: [Select]function lens_name() local pname = 0 if (bi.platform=="m3") then if (bi.platsub == "101a") then pname = 0x00244969 else pname = 0x002449ad end elseif (bi.platform=="m10") then pname = 0x272065 end local len = peek(pname-1,1) local i = 0 local t = {} while i < len do local c = peek(pname + i, 1) if c == 0 then break end table.insert(t, string.char(c)) i = i + 1 end local name = table.concat(t) return nameend
function lens_name() local pname = 0 if (bi.platform=="m3") then if (bi.platsub == "101a") then pname = 0x00244969 else pname = 0x002449ad end elseif (bi.platform=="m10") then pname = 0x272065 end local len = peek(pname-1,1) local i = 0 local t = {} while i < len do local c = peek(pname + i, 1) if c == 0 then break end table.insert(t, string.char(c)) i = i + 1 end local name = table.concat(t) return nameend
Quote from: pigeonhill on 09 / June / 2022, 02:21:50Plus Code: [Select]function lens_name() local pname = 0 if (bi.platform=="m3") then if (bi.platsub == "101a") then pname = 0x00244969 else pname = 0x002449ad end elseif (bi.platform=="m10") then pname = 0x272065 end local len = peek(pname-1,1) local i = 0 local t = {} while i < len do local c = peek(pname + i, 1) if c == 0 then break end table.insert(t, string.char(c)) i = i + 1 end local name = table.concat(t) return nameendIs the "pname" available for M100, too?
Quote from: pigeonhill on 07 / June / 2022, 12:08:18Could you help me out on the peek addresses for lens name on the M10 and M100?M10 (all supported fw versions): 0x272065M100 100a: 0x1FC84E
Could you help me out on the peek addresses for lens name on the M10 and M100?
Need lenses,... https://chdk.setepontos.com/index.php?topic=13638.msg146886#msg146886
Quote from: Caefix on 11 / June / 2022, 16:19:30Need lenses,... https://chdk.setepontos.com/index.php?topic=13638.msg146886#msg146886All the M lenses are registered in the script
Started by srsa_4c « 1 2 ... 18 19 » General Discussion and Assistance
Started by c_joerg « 1 2 » Firmware Dumping
Started by psxpetey General Discussion and Assistance
Started by cloudv General Discussion and Assistance
Started by cedricb DryOS Development