mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
* trying setCRC(1)
This commit is contained in:
parent
3778c0a8ff
commit
a259d27cfe
5 changed files with 6 additions and 5 deletions
|
|
@ -1265,7 +1265,7 @@ void setup() {
|
|||
halt();
|
||||
}
|
||||
|
||||
radio.setCRC(0);
|
||||
radio.setCRC(1);
|
||||
|
||||
#ifdef SX126X_CURRENT_LIMIT
|
||||
radio.setCurrentLimit(SX126X_CURRENT_LIMIT);
|
||||
|
|
|
|||
|
|
@ -689,7 +689,7 @@ void setup() {
|
|||
halt();
|
||||
}
|
||||
|
||||
radio.setCRC(0);
|
||||
radio.setCRC(1);
|
||||
|
||||
#ifdef SX126X_CURRENT_LIMIT
|
||||
radio.setCurrentLimit(SX126X_CURRENT_LIMIT);
|
||||
|
|
|
|||
|
|
@ -743,7 +743,7 @@ void setup() {
|
|||
halt();
|
||||
}
|
||||
|
||||
radio.setCRC(0);
|
||||
radio.setCRC(1);
|
||||
|
||||
#ifdef SX126X_CURRENT_LIMIT
|
||||
radio.setCurrentLimit(SX126X_CURRENT_LIMIT);
|
||||
|
|
|
|||
|
|
@ -585,7 +585,7 @@ void setup() {
|
|||
halt();
|
||||
}
|
||||
|
||||
radio.setCRC(0);
|
||||
radio.setCRC(1);
|
||||
|
||||
#ifdef SX126X_CURRENT_LIMIT
|
||||
radio.setCurrentLimit(SX126X_CURRENT_LIMIT);
|
||||
|
|
|
|||
|
|
@ -52,10 +52,11 @@ int RadioLibWrapper::recvRaw(uint8_t* bytes, int sz) {
|
|||
int err = _radio->readData(bytes, len);
|
||||
if (err != RADIOLIB_ERR_NONE) {
|
||||
MESH_DEBUG_PRINTLN("RadioLibWrapper: error: readData(%d)", err);
|
||||
len = 0;
|
||||
} else {
|
||||
// Serial.print(" readData() -> "); Serial.println(len);
|
||||
n_recv++;
|
||||
}
|
||||
n_recv++;
|
||||
}
|
||||
state = STATE_IDLE; // need another startReceive()
|
||||
return len;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue