Removing unnecessary comments

This commit is contained in:
Ryan Alder 2020-02-17 13:13:20 -08:00
parent 870af1d6ff
commit 8f255217ed

39
main.c
View File

@ -461,7 +461,6 @@ int main (int argc, char *argv[]) {
SetupLoRa(); SetupLoRa();
// protocol below
opmodeLora(); opmodeLora();
opmode(OPMODE_STANDBY); opmode(OPMODE_STANDBY);
writeReg(RegPaRamp, (readReg(RegPaRamp) & 0xF0) | 0x08); 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); return (0);
} }