全司美特-单片机程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
443 B

#include "IdMgr.hpp"
#include "zsdk/zsdk.hpp"
using namespace iflytop;
void IdMgr::addIdItem(IdIterm item) {
if (tableNum >= MAX_IDITERM) {
ZASSERT(0);
return;
}
table[tableNum] = item;
tableNum++;
}
int IdMgr::getBoardId(int projId, int boardTypeId) {
for (int i = 0; i < tableNum; i++) {
if (table[i].projId == projId && table[i].boardTypeId == boardTypeId) {
return table[i].boardId;
}
}
return -1;
}