Merge branch 'master' into meshdebug
This commit is contained in:
commit
58d35a7330
|
@ -72,17 +72,6 @@ static void openbeaconRead()
|
||||||
|
|
||||||
void openbeaconSetup(void)
|
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();
|
oid = GetUUID32();
|
||||||
strength = 0;
|
strength = 0;
|
||||||
#if SAVE_OPENBEACON
|
#if SAVE_OPENBEACON
|
||||||
|
|
|
@ -83,6 +83,7 @@ void m_time(void){
|
||||||
struct tm* tm;
|
struct tm* tm;
|
||||||
int select=0;
|
int select=0;
|
||||||
char c[2]={0,0};
|
char c[2]={0,0};
|
||||||
|
int sp;
|
||||||
getInputWaitRelease();
|
getInputWaitRelease();
|
||||||
delayms(100);
|
delayms(100);
|
||||||
while(1) {
|
while(1) {
|
||||||
|
@ -133,6 +134,11 @@ void m_time(void){
|
||||||
lcdNl();
|
lcdNl();
|
||||||
lcdPrint("Inc:");
|
lcdPrint("Inc:");
|
||||||
lcdPrintInt(meshincctr);
|
lcdPrintInt(meshincctr);
|
||||||
|
|
||||||
|
lcdPrint(" SP:");
|
||||||
|
__asm( "mov %0, sp\n" : "=r" (sp) :);
|
||||||
|
lcdPrint(IntToStrX(sp,4));
|
||||||
|
|
||||||
lcdNl();
|
lcdNl();
|
||||||
lcdPrint("Nice:");
|
lcdPrint("Nice:");
|
||||||
lcdPrintInt(meshnice);
|
lcdPrintInt(meshnice);
|
||||||
|
@ -169,6 +175,8 @@ void m_time(void){
|
||||||
case BTN_UP:
|
case BTN_UP:
|
||||||
active=1;
|
active=1;
|
||||||
break;
|
break;
|
||||||
|
case BTN_NONE:
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,7 +14,7 @@ rebuild:
|
||||||
|
|
||||||
setup:
|
setup:
|
||||||
cp ../../firmware/firmware.bin .
|
cp ../../firmware/firmware.bin .
|
||||||
-mkdir files
|
mkdir -p files
|
||||||
cp ../../firmware/l0dable/*c0d files
|
cp ../../firmware/l0dable/*c0d files
|
||||||
cp ../../firmware/l0dable/*nik files
|
cp ../../firmware/l0dable/*nik files
|
||||||
cp ../../firmware/l0dable/*int files
|
cp ../../firmware/l0dable/*int files
|
||||||
|
|
Loading…
Reference in New Issue