Subversion Repositories heating

Rev

Rev 49 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 49 Rev 50
Line 505... Line 505...
505
 
505
 
506
	if (HeatConf == nullptr)
506
	if (HeatConf == nullptr)
507
		HeatConf = akt;
507
		HeatConf = akt;
508
	else
508
	else
509
	{
509
	{
510
		HTCONF *p;
510
		HTCONF *p, *prev;
511
 
511
 
512
		p = HeatConf;
512
		p = prev = HeatConf;
513
 
513
 
514
		while (p->next)
514
		while (p)
515
		{
515
		{
-
 
516
			prev = p;
-
 
517
 
516
			if (p->rnum == ht->rnum)
518
			if (p->rnum == ht->rnum)
517
			{
519
			{
518
				p->soll = ht->soll;
520
				p->soll = ht->soll;
519
				p->night = ht->night;
521
				p->night = ht->night;
520
				p->minimal = ht->minimal;
522
				p->minimal = ht->minimal;
521
				p->start1 = ht->start1;
523
				p->start1 = ht->start1;
522
				p->end1 = ht->end1;
524
				p->end1 = ht->end1;
523
				p->start2 = p->start2;
525
				p->start2 = p->start2;
524
				p->end2 = p->end2;
526
				p->end2 = p->end2;
525
				delete akt;
527
				delete akt;
-
 
528
				debug("html::addConfig(): rname="+ToString(p->rname)+", rnum="+itostring(p->rnum)+", Orig:"+ToString(ht->rname)+":"+itostring(ht->rnum));
526
				return p;
529
				return p;
527
			}
530
			}
528
 
531
 
529
			p = p->next;
532
			p = p->next;
530
		}
533
		}
531
 
534
 
532
		p->next = akt;
535
		prev->next = akt;
533
	}
536
	}
534
 
537
 
535
	debug("html::addConfig(): rname="+ToString(akt->rname)+", rnum="+itostring(akt->rnum));
538
	debug("html::addConfig(): rname="+ToString(akt->rname)+", rnum="+itostring(akt->rnum));
536
	return akt;
539
	return akt;
537
}
540
}