Ankündigung

Einklappen
Keine Ankündigung bisher.

Problems after v2.00x upgrade

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    #16
    Zitat von martenss Beitrag anzeigen
    But unfortunately the ICON only shows an associated time-stamp (in Grey) when the StatusGA is OFF - as a result of the after() timer expiry 1 second after systemstart [so "StatusGA or after()" goes from OFF -> ON -> OFF].
    That is not 1 second, but 1 Millisecond. The reason is, that the initializing of the webserver is initiated with systemstart with the default values. For this, there is this short delay which guarantees that there is no conflict. Unfortunately the else branch doesn't do this. So this is an issue we will fix next time
    This will help -still untested, but a strong guess:
    Code:
    :begin ToggleButton(ID, PageID, [URL="http://redaktion.knx-user-forum.de/lexikon/GA/"]GA[/URL], StatusGA, [URL="http://redaktion.knx-user-forum.de/lexikon/ICON/"]ICON[/URL])
    <...>
    //SM - 110308: replaced [URL="http://redaktion.knx-user-forum.de/lexikon/GA/"]GA[/URL] into StatusGA
    initga(StatusGA)
    if pbutton(ID,PageID)==1 then {
       write(GA,!StatusGA)
    } endif   
    if StatusGA or after(systemstart(),1u64) then {
         pdisplay(ID,settime(),ICON,ACTIVE,GREEN,PageID) 
    }endif
    
    if StatusGA or after(systemstart(),1u64) then {
         pdisplay(ID,settime(),ICON,INACTIVE,GREY,PageID) 
    } endif
    :end
    offizielles Supportforum für den Enertex® EibPC: https://knx-user-forum.de/eibpc/
    Enertex Produkte kaufen

    Kommentar

    Lädt...
    X