add rudimentary release version support

This commit is contained in:
Stefan `Sec` Zehl 2011-12-25 20:15:42 +01:00
parent 53242bb263
commit 52085b91b5
3 changed files with 18 additions and 3 deletions

View File

@ -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();
};

View File

@ -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();

View File

@ -75,3 +75,7 @@ int main(void) {
wrapper(); // see module/ subdirectory
}
int getrelease(void){
return 0x00000104;
};