Switch mode 300/1200 are working via www

pull/1/head
US1GHQ 2021-07-27 18:17:09 +03:00
parent 770464fadf
commit 85ab5af65d
2 changed files with 14 additions and 8 deletions

View File

@ -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);

View File

@ -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))