Subversion Repositories Projects

Rev

Rev 750 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 750 Rev 801
Line 53... Line 53...
53
        CLIENT.TTY_MAX = Setting.value("TTY_MAX", 1).toInt();
53
        CLIENT.TTY_MAX = Setting.value("TTY_MAX", 1).toInt();
54
        CLIENT.TTY_ID  = Setting.value("TTY_ID",  0).toInt();
54
        CLIENT.TTY_ID  = Setting.value("TTY_ID",  0).toInt();
Line 55... Line 55...
55
 
55
 
56
        for (int z = 0; z < CLIENT.TTY_MAX; z++)
56
        for (int z = 0; z < CLIENT.TTY_MAX; z++)
-
 
57
        {
-
 
58
#ifdef WIN32
-
 
59
            CLIENT.TTY_DEVICES[z] = Setting.value("TTY_DEVICE_" + QString("%1").arg(z), QString("COM1")).toString();
57
        {
60
#else
-
 
61
            CLIENT.TTY_DEVICES[z] = Setting.value("TTY_DEVICE_" + QString("%1").arg(z), QString("/dev/ttyS3")).toString();
58
            CLIENT.TTY_DEVICES[z] = Setting.value("TTY_DEVICE_" + QString("%1").arg(z), QString("/dev/ttyS3")).toString();
62
#endif
59
        }
63
        }
60
        CLIENT.TCP_MAX      = Setting.value("TCP_MAX", 1).toInt();
64
        CLIENT.TCP_MAX      = Setting.value("TCP_MAX", 1).toInt();
61
        CLIENT.TCP_ID       = Setting.value("TCP_ID",  0).toInt();
65
        CLIENT.TCP_ID       = Setting.value("TCP_ID",  0).toInt();