add rudimentary release version support
This commit is contained in:
parent
53242bb263
commit
52085b91b5
|
@ -26,17 +26,19 @@ void getsp(void);
|
|||
void uptime(void);
|
||||
void uuid(void);
|
||||
void lcdrtest(void);
|
||||
void release(void);
|
||||
|
||||
static const struct MENU submenu_debug={ "debug", {
|
||||
{ "ChkBattery", &ChkBattery},
|
||||
{ "ChkLight", &ChkLight},
|
||||
{ "MeshInfo", &m_time},
|
||||
{ "ChkFunk", &ChkFunk},
|
||||
{ "Qstatus", &Qstatus},
|
||||
// { "Qstatus", &Qstatus},
|
||||
// { "ShowSP", &getsp},
|
||||
{ "lcdrtest", &lcdrtest},
|
||||
{ "LcdRead", &lcdrtest},
|
||||
{ "Uptime", &uptime},
|
||||
{ "Uuid", &uuid},
|
||||
{ "Release", &release},
|
||||
{NULL,NULL}
|
||||
}};
|
||||
|
||||
|
@ -126,7 +128,7 @@ void uuid(void) {
|
|||
lcdPrintln(IntToStrX(iap_return.Result[2],8));
|
||||
lcdPrintln(IntToStrX(iap_return.Result[3],8));
|
||||
lcdNl();
|
||||
lcdPrintln("Beacon ID:");
|
||||
lcdPrintln("Bacon ID:");
|
||||
lcdPrintln(IntToStrX(GetUUID32(),8));
|
||||
lcdRefresh();
|
||||
while(!getInputRaw())work_queue();
|
||||
|
@ -331,3 +333,11 @@ void lcdrtest(void){
|
|||
lcdRefresh();
|
||||
while(!getInputRaw())delayms(10);
|
||||
};
|
||||
|
||||
void release(){
|
||||
lcdPrint("r0ket");
|
||||
lcdPrint("Release: ");
|
||||
lcdPrintln(IntToStrX(getrelease(),8));
|
||||
lcdRefresh();
|
||||
while(!getInputRaw())work_queue();
|
||||
};
|
||||
|
|
|
@ -2,3 +2,4 @@ size_t strlen(const char *s);
|
|||
char strcpy(char * restrict dst, const char * restrict src);
|
||||
void memcpy(void *dst, const void *src, size_t len);
|
||||
void memset(void *s, int c, size_t n);
|
||||
int getrelease();
|
||||
|
|
|
@ -75,3 +75,7 @@ int main(void) {
|
|||
|
||||
wrapper(); // see module/ subdirectory
|
||||
}
|
||||
|
||||
int getrelease(void){
|
||||
return 0x00000104;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue