Pre-Build Script

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Pre-Build Script

550 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nkarakotas on Wed Nov 07 13:09:05 MST 2012
Hello,

I have a pre-build script incrementing/updating firmware version that is used for firmware upgrades etc. I do remote upgrades and I populate a cost string as follows:

const char MYSQL_OTA_QUERY[] = "SELECT firm_url FROM `trg`.`ota` where hardware_name='"HARDWARE"'AND firmware_version * 1>"MAJOR_STR"."MINOR_STR" ORDER BY firmware_version * 1 DESC LIMIT 1;";


I use the above so I dont need to use RAM.
I have noticed that when I change the value of MINOR_STR it doesnt update the string. If I run it a second time it successfully does it.
This isnt true for the following defines I also have, these update:
#defineMAJORxx
#define MINORxx
#define REVISIONxx

Any insight will be thankful.

Regards
0 项奖励
回复
0 回复数