Changeset 16384 for trunk/FACT++


Ignore:
Timestamp:
05/28/13 13:52:28 (11 years ago)
Author:
tbretz
Message:
Some improvements switching on the drive cabinet.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/Startup.js

    r16075 r16384  
    178178if ((dim.state("PWR_CONTROL").index&16)==0)
    179179{
    180     console.out("Drive on");
     180    console.out("Drive cabinet not power... Switching on.");
    181181    dim.send("PWR_CONTROL/TOGGLE_DRIVE");
     182    v8.timeout(5000, function() { if (dim.state("PWR_CONTROL").index&16) return true; });
    182183}
    183184
Note: See TracChangeset for help on using the changeset viewer.