Merge branch 'master' into meshdebug

This commit is contained in:
Stefan `Sec` Zehl 2012-01-26 23:56:32 +01:00
commit 58d35a7330
3 changed files with 9 additions and 12 deletions

View File

@ -72,17 +72,6 @@ static void openbeaconRead()
void openbeaconSetup(void)
{
uint8_t c = 0;
uint8_t channels[] = {12,17,22,27,32,37,42,47,52,57,62,67,72};
//nrf_startCW();
while(0){
delayms(20);
nrf_set_channel(channels[c++]);
if( c == sizeof(channels) ){
c = 0;
}
}
oid = GetUUID32();
strength = 0;
#if SAVE_OPENBEACON

View File

@ -83,6 +83,7 @@ void m_time(void){
struct tm* tm;
int select=0;
char c[2]={0,0};
int sp;
getInputWaitRelease();
delayms(100);
while(1) {
@ -133,6 +134,11 @@ void m_time(void){
lcdNl();
lcdPrint("Inc:");
lcdPrintInt(meshincctr);
lcdPrint(" SP:");
__asm( "mov %0, sp\n" : "=r" (sp) :);
lcdPrint(IntToStrX(sp,4));
lcdNl();
lcdPrint("Nice:");
lcdPrintInt(meshnice);
@ -169,6 +175,8 @@ void m_time(void){
case BTN_UP:
active=1;
break;
case BTN_NONE:
break;
default:
return;
};

View File

@ -14,7 +14,7 @@ rebuild:
setup:
cp ../../firmware/firmware.bin .
-mkdir files
mkdir -p files
cp ../../firmware/l0dable/*c0d files
cp ../../firmware/l0dable/*nik files
cp ../../firmware/l0dable/*int files