Exemple #1
0
 public TemperatueBoard(UInt16 Id, TemperatureConfig newconfig)
 {
     id       = Id;
     type     = (int)SensorType.TEMPBOARD;
     online   = true;
     online_t = false;
     port     = -1;
     for (int i = 0; i < 16; i++)
     {
         temperature[i] = 0x4000;
         if (Id == newconfig.id)
         {
             config[i] = newconfig.config[i];
         }
     }
     newindata           = false;
     uploadcreatenewfile = true;
 }
Exemple #2
0
 public TemperatueBoard(UInt16 Id, TemperatureConfig newconfig)
 {
     id = Id;
     type = (int)SensorType.TEMPBOARD;
     online = true;
     online_t = false;
     port = -1;
     for (int i = 0; i < 16; i++)
     {
         temperature[i] = 0x4000;
         if(Id == newconfig.id)
             config[i] = newconfig.config[i];
     }
     newindata = false;
     uploadcreatenewfile = true;
 }