lixioayao 6 سال پیش
والد
کامیت
1f46d43fed
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 2 1
      ant.h
  2. 1 2
      message.cpp

+ 2 - 1
ant.h

@@ -138,7 +138,8 @@ struct site:point,std::enable_shared_from_this<site>
 	}
     void set_client(std::shared_ptr<client>& clt)
     {
-        m_clt = clt;
+		if(m_clt != clt)
+			m_clt = clt;
 		m_time=time(0);
     }
 

+ 1 - 2
message.cpp

@@ -33,8 +33,7 @@ void message_locinfo::load(zistream&is,bool tdoa)
 	if(m_card_type == 1 || m_card_type==4 || m_card_type==5)
 		m_acc=b;
 	else
-		m_acc =b*0.01;
-		//m_acc=((b&0x80)?-1.:1.)*(b&0x7f)*98;
+		m_acc=((b&0x80)?-1.:1.)*(b&0x7f)*0.01;
 
 	//TOF
 	is>>b>>i;