Switch mode 300/1200 are working via www
parent
770464fadf
commit
85ab5af65d
|
@ -375,11 +375,14 @@ void loraSend(byte txPower, String aprsFreq, const String &message) {
|
|||
|
||||
int messageSize = min(message.length(), sizeof(lora_TXBUFF) - 1);
|
||||
message.toCharArray((char*)lora_TXBUFF, messageSize + 1, 0);
|
||||
#ifdef SPEED_1200
|
||||
if (aprsMode == 1200)
|
||||
{
|
||||
rf95.setModemConfig(BG_RF95::Bw125Cr47Sf512);
|
||||
#else
|
||||
}
|
||||
else
|
||||
{
|
||||
rf95.setModemConfig(BG_RF95::Bw125Cr45Sf4096);
|
||||
#endif
|
||||
}
|
||||
float aprsFreq2 = aprsFreq.toFloat();
|
||||
rf95.setFrequency(aprsFreq2);
|
||||
rf95.setTxPower(txPower);
|
||||
|
@ -827,11 +830,14 @@ void setup(){
|
|||
#endif
|
||||
batt_read();
|
||||
writedisplaytext("LoRa-APRS","","Init:","ADC OK!","BAT: "+String(BattVolts,1),"");
|
||||
#ifdef SPEED_1200
|
||||
if (aprsMode == 1200)
|
||||
{
|
||||
rf95.setModemConfig(BG_RF95::Bw125Cr47Sf512);
|
||||
#else
|
||||
}
|
||||
else
|
||||
{
|
||||
rf95.setModemConfig(BG_RF95::Bw125Cr45Sf4096);
|
||||
#endif
|
||||
}
|
||||
float aprsFreq2 = aprsFreq.toFloat();
|
||||
rf95.setFrequency(aprsFreq2);
|
||||
rf95.setTxPower(txPower);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
FILENAME_BUILDNO = '.pio/versioning'
|
||||
FILENAME_VERSION_H = 'include/version.h'
|
||||
version = 'v0.3.'
|
||||
version = 'v0.3.1.'
|
||||
|
||||
import datetime
|
||||
from subprocess import *
|
||||
|
@ -11,7 +11,7 @@ try:
|
|||
build_no = int(f.readline()) + 1
|
||||
except:
|
||||
print('Starting build number from 1..')
|
||||
build_no = 143
|
||||
build_no = 1
|
||||
with open(FILENAME_BUILDNO, 'w+') as f:
|
||||
f.write(str(build_no))
|
||||
print('Build number: {}'.format(build_no))
|
||||
|
|
Loading…
Reference in New Issue