some M10 finetuning (reset IRQ flags when switching to different sonde type, TFT display of M10 ID/Type)

This commit is contained in:
Hansi, dl9rdz 2019-11-02 16:48:21 +01:00
parent de5308893a
commit 9d0fd046e1
4 changed files with 10 additions and 5 deletions

View File

@ -207,7 +207,7 @@ key2action=#,#,#,#
timeaction=#,D,+
fonts=5,6
0,0=XScan:
0,8=T
0,8,5=T
3,0=F MHz
5,0=S
7,5=n
@ -219,7 +219,7 @@ key1action=+,0,F,W
key2action=>,#,#,#
timeaction=#,#,0
color=FFD700
0,0=Is
0,0=Id
color=0000FF
0,11,-5.5=f
1,1,6=c

View File

@ -72,6 +72,7 @@ int DFM::setup(float frequency, int inv)
Serial.println(frequency);
int retval = sx1278.setFrequency(frequency);
sx1278.clearIRQFlags();
DFM_DBG(Serial.println("Setting SX1278 config for DFM finished\n"); Serial.println());
return retval;
}

View File

@ -143,9 +143,11 @@ int RS41::setup(float frequency)
#if RS41_DEBUG
RS41_DBG(Serial.println("Setting SX1278 config for RS41 finished\n"); Serial.println());
#endif
// go go go
sx1278.setPayloadLength(RS41MAXLEN-8); // Expect 320-8 bytes or 518-8 bytes (8 byte header)
sx1278.writeRegister(REG_OP_MODE, FSK_RX_MODE);
sx1278.clearIRQFlags();
// the following is already done in receivePacketTimeout()
// sx1278.setPayloadLength(RS41MAXLEN-8); // Expect 320-8 bytes or 518-8 bytes (8 byte header)
// sx1278.writeRegister(REG_OP_MODE, FSK_RX_MODE);
return retval;
}

View File

@ -183,6 +183,8 @@ int RS92::setup(float frequency)
Serial.print("RS92: setting RX frequency to ");
Serial.println(frequency);
int res = sx1278.setFrequency(frequency);
sx1278.clearIRQFlags();
// enable RX
sx1278.setPayloadLength(0); // infinite for now...
//sx1278.setPayloadLength(292);