some M10 finetuning (reset IRQ flags when switching to different sonde type, TFT display of M10 ID/Type)
This commit is contained in:
parent
de5308893a
commit
9d0fd046e1
|
|
@ -207,7 +207,7 @@ key2action=#,#,#,#
|
||||||
timeaction=#,D,+
|
timeaction=#,D,+
|
||||||
fonts=5,6
|
fonts=5,6
|
||||||
0,0=XScan:
|
0,0=XScan:
|
||||||
0,8=T
|
0,8,5=T
|
||||||
3,0=F MHz
|
3,0=F MHz
|
||||||
5,0=S
|
5,0=S
|
||||||
7,5=n
|
7,5=n
|
||||||
|
|
@ -219,7 +219,7 @@ key1action=+,0,F,W
|
||||||
key2action=>,#,#,#
|
key2action=>,#,#,#
|
||||||
timeaction=#,#,0
|
timeaction=#,#,0
|
||||||
color=FFD700
|
color=FFD700
|
||||||
0,0=Is
|
0,0=Id
|
||||||
color=0000FF
|
color=0000FF
|
||||||
0,11,-5.5=f
|
0,11,-5.5=f
|
||||||
1,1,6=c
|
1,1,6=c
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,7 @@ int DFM::setup(float frequency, int inv)
|
||||||
Serial.println(frequency);
|
Serial.println(frequency);
|
||||||
|
|
||||||
int retval = sx1278.setFrequency(frequency);
|
int retval = sx1278.setFrequency(frequency);
|
||||||
|
sx1278.clearIRQFlags();
|
||||||
DFM_DBG(Serial.println("Setting SX1278 config for DFM finished\n"); Serial.println());
|
DFM_DBG(Serial.println("Setting SX1278 config for DFM finished\n"); Serial.println());
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -143,9 +143,11 @@ int RS41::setup(float frequency)
|
||||||
#if RS41_DEBUG
|
#if RS41_DEBUG
|
||||||
RS41_DBG(Serial.println("Setting SX1278 config for RS41 finished\n"); Serial.println());
|
RS41_DBG(Serial.println("Setting SX1278 config for RS41 finished\n"); Serial.println());
|
||||||
#endif
|
#endif
|
||||||
// go go go
|
sx1278.clearIRQFlags();
|
||||||
sx1278.setPayloadLength(RS41MAXLEN-8); // Expect 320-8 bytes or 518-8 bytes (8 byte header)
|
|
||||||
sx1278.writeRegister(REG_OP_MODE, FSK_RX_MODE);
|
// 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;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -183,6 +183,8 @@ int RS92::setup(float frequency)
|
||||||
Serial.print("RS92: setting RX frequency to ");
|
Serial.print("RS92: setting RX frequency to ");
|
||||||
Serial.println(frequency);
|
Serial.println(frequency);
|
||||||
int res = sx1278.setFrequency(frequency);
|
int res = sx1278.setFrequency(frequency);
|
||||||
|
sx1278.clearIRQFlags();
|
||||||
|
|
||||||
// enable RX
|
// enable RX
|
||||||
sx1278.setPayloadLength(0); // infinite for now...
|
sx1278.setPayloadLength(0); // infinite for now...
|
||||||
//sx1278.setPayloadLength(292);
|
//sx1278.setPayloadLength(292);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue