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 uptime(void);
|
||||||
void uuid(void);
|
void uuid(void);
|
||||||
void lcdrtest(void);
|
void lcdrtest(void);
|
||||||
|
void release(void);
|
||||||
|
|
||||||
static const struct MENU submenu_debug={ "debug", {
|
static const struct MENU submenu_debug={ "debug", {
|
||||||
{ "ChkBattery", &ChkBattery},
|
{ "ChkBattery", &ChkBattery},
|
||||||
{ "ChkLight", &ChkLight},
|
{ "ChkLight", &ChkLight},
|
||||||
{ "MeshInfo", &m_time},
|
{ "MeshInfo", &m_time},
|
||||||
{ "ChkFunk", &ChkFunk},
|
{ "ChkFunk", &ChkFunk},
|
||||||
{ "Qstatus", &Qstatus},
|
// { "Qstatus", &Qstatus},
|
||||||
// { "ShowSP", &getsp},
|
// { "ShowSP", &getsp},
|
||||||
{ "lcdrtest", &lcdrtest},
|
{ "LcdRead", &lcdrtest},
|
||||||
{ "Uptime", &uptime},
|
{ "Uptime", &uptime},
|
||||||
{ "Uuid", &uuid},
|
{ "Uuid", &uuid},
|
||||||
|
{ "Release", &release},
|
||||||
{NULL,NULL}
|
{NULL,NULL}
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
@ -126,7 +128,7 @@ void uuid(void) {
|
||||||
lcdPrintln(IntToStrX(iap_return.Result[2],8));
|
lcdPrintln(IntToStrX(iap_return.Result[2],8));
|
||||||
lcdPrintln(IntToStrX(iap_return.Result[3],8));
|
lcdPrintln(IntToStrX(iap_return.Result[3],8));
|
||||||
lcdNl();
|
lcdNl();
|
||||||
lcdPrintln("Beacon ID:");
|
lcdPrintln("Bacon ID:");
|
||||||
lcdPrintln(IntToStrX(GetUUID32(),8));
|
lcdPrintln(IntToStrX(GetUUID32(),8));
|
||||||
lcdRefresh();
|
lcdRefresh();
|
||||||
while(!getInputRaw())work_queue();
|
while(!getInputRaw())work_queue();
|
||||||
|
@ -331,3 +333,11 @@ void lcdrtest(void){
|
||||||
lcdRefresh();
|
lcdRefresh();
|
||||||
while(!getInputRaw())delayms(10);
|
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);
|
char strcpy(char * restrict dst, const char * restrict src);
|
||||||
void memcpy(void *dst, const void *src, size_t len);
|
void memcpy(void *dst, const void *src, size_t len);
|
||||||
void memset(void *s, int c, size_t n);
|
void memset(void *s, int c, size_t n);
|
||||||
|
int getrelease();
|
||||||
|
|
|
@ -75,3 +75,7 @@ int main(void) {
|
||||||
|
|
||||||
wrapper(); // see module/ subdirectory
|
wrapper(); // see module/ subdirectory
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int getrelease(void){
|
||||||
|
return 0x00000104;
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue