Removing unnecessary comments
This commit is contained in:
parent
870af1d6ff
commit
8f255217ed
39
main.c
39
main.c
@ -461,7 +461,6 @@ int main (int argc, char *argv[]) {
|
||||
|
||||
SetupLoRa();
|
||||
|
||||
// protocol below
|
||||
opmodeLora();
|
||||
opmode(OPMODE_STANDBY);
|
||||
writeReg(RegPaRamp, (readReg(RegPaRamp) & 0xF0) | 0x08);
|
||||
@ -473,43 +472,5 @@ int main (int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
if (!strcmp("sender", argv[1])) {
|
||||
opmodeLora();
|
||||
// enter standby mode (required for FIFO loading))
|
||||
opmode(OPMODE_STANDBY);
|
||||
|
||||
writeReg(RegPaRamp, (readReg(RegPaRamp) & 0xF0) | 0x08); // set PA ramp-up time 50 uSec
|
||||
|
||||
configPower(23);
|
||||
|
||||
printf("Send packets at SF%i on %.6lf Mhz.\n", sf,(double)freq/1000000);
|
||||
printf("------------------\n");
|
||||
|
||||
if (argc > 2)
|
||||
strncpy((char *)hello, argv[2], sizeof(hello));
|
||||
|
||||
//opmode(OPMODE_RX);
|
||||
while(1) {
|
||||
txlora(hello, strlen((char *)hello));
|
||||
delay(5000);
|
||||
//receivepacket();
|
||||
//delay(1);
|
||||
}
|
||||
} else {
|
||||
|
||||
// radio init
|
||||
opmodeLora();
|
||||
opmode(OPMODE_STANDBY);
|
||||
opmode(OPMODE_RX);
|
||||
printf("Listening at SF%i on %.6lf Mhz.\n", sf,(double)freq/1000000);
|
||||
printf("------------------\n");
|
||||
while(1) {
|
||||
receivepacket();
|
||||
delay(1);
|
||||
}
|
||||
|
||||
}*/
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user