Changeset 602


Ignore:
Timestamp:
11/29/08 19:40:05 (5 years ago)
Author:
phyrephox
Message:
  • fixed get_platform_id in ubasic and also in the "safety feature"

now returns the right decimal platform id. perhaps someone can figure out why atoi(PLATFORMID) can't be assigned to conf.platformid on cfg creation ( error: initializer element is not constant)?

due to this fix, some cfg items get resetted on cfgs by people who used latest revisions (no biggie i hope):

conf.raw_cache = 0;
conf.zoom_override_value = 0;
conf.fast_ev = 0;
conf.fast_movie_control = 0;
conf.fast_movie_quality_control = 0;
conf.zoom_scale = 100;
conf.platformid = atoi(PLATFORMID);

this one gave me a headache, and in the end it turned out i was the idiot :D
note: perhaps someone should update the wiki with the decimal platform ids http://chdk.wikia.com/wiki/P-ID_(Table)

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/CHDK/LANG/german.lng

    r601 r602  
    585585414 "    Bei Neustart löschen" 
    586586 
    587 415 "RAW-Endung für Reihe" 
    588  
    589 416 "  in Fahrenheit" 
     587415 "RAW-Präfix für Reihe" 
     588 
     589416 "    in Fahrenheit" 
    590590 
    591591// Konturenüberlagerung 
    592592417 "Lade Konturen ..." 
    593593418 "Speichere Konturen ..." 
    594 419 "Auch im Playmode" 
     594419 "Auch im Playmode?" 
    595595420 "Gib Speicher frei ..." 
    596596421 "Lade und setze Zoom" 
    597597422 "Sperre Konturenüberlagerung" 
    598598 
    599 423 "2. Vorhang Blitzsychro" 
     599423 "2. Vorhang Blitzsynchro" 
    600600 
    601601// DNG 
     
    603603425 "RAW-Puffer nutzen" 
    604604426 "Datei badpixel.bin fehlt!" 
    605 427 "Zeige raw speicherzeit" 
     605427 "Zeige RAW Speicherzeit" 
    606606 
    607607428 "4 Gewinnt" 
  • trunk/core/conf.c

    r601 r602  
    107107void clear_values() 
    108108{        
    109         if (conf.platformid != (int)PLATFORMID) // the following config entries will be resetted if you switch the camera using the same cfg 
     109        if (conf.platformid != atoi(PLATFORMID)) // the following config entries will be resetted if you switch the camera using the same cfg 
    110110        { 
    111111    conf.raw_cache = 0; 
     
    115115    conf.fast_movie_quality_control = 0; 
    116116    conf.zoom_scale = 100; 
    117     conf.platformid = (int)PLATFORMID; 
     117    conf.platformid = atoi(PLATFORMID); 
    118118        } 
    119119 
     
    390390    CONF_INFO(227, conf.flash_sync_curtain,     CONF_DEF_VALUE, i:0, NULL), 
    391391    CONF_INFO(228, conf.raw_timer,     CONF_DEF_VALUE, i:0, NULL), 
    392     CONF_INFO(229, conf.platformid,     CONF_DEF_VALUE, i:(int)PLATFORMID, NULL), 
     392    CONF_INFO(229, conf.platformid,     CONF_DEF_VALUE, i:0, NULL), 
    393393    CONF_INFO(230, conf.save_raw_in_edgeoverlay,     CONF_DEF_VALUE, i:0, NULL), 
    394394    CONF_INFO(231, conf.save_raw_in_auto,     CONF_DEF_VALUE, i:0, NULL), 
  • trunk/lib/ubasic/ubasic.c

    r593 r602  
    272272  case TOKENIZER_GET_PLATFORM_ID: 
    273273    accept(TOKENIZER_GET_PLATFORM_ID); 
    274     r = (int)PLATFORMID; 
     274    r = atoi(PLATFORMID); 
    275275   break; 
    276276  case TOKENIZER_GET_DRIVE_MODE: 
Note: See TracChangeset for help on using the changeset viewer.