more work
This commit is contained in:
parent
7e982fbbb7
commit
8785160ff5
1 changed files with 1 additions and 6 deletions
|
@ -102,14 +102,9 @@ static void handle_lora_receive(uint8_t size) {
|
||||||
free(msg);
|
free(msg);
|
||||||
} else if(packet->type == ROUTING) {
|
} else if(packet->type == ROUTING) {
|
||||||
// future stuff
|
// future stuff
|
||||||
} else if((char*)packet[0] >= 32 && (char*)packet[0] <= 126) {
|
|
||||||
// mostly for dumping purposes
|
|
||||||
((char*)packet)[size] = '\0';
|
|
||||||
ESP_LOGI(TAG, "%s", (char*)packet);
|
|
||||||
|
|
||||||
goto receive_cleanup;
|
|
||||||
} else {
|
} else {
|
||||||
ESP_LOGW(TAG, "Unknown packet type: %02X", packet->type);
|
ESP_LOGW(TAG, "Unknown packet type: %02X", packet->type);
|
||||||
|
ESP_LOGW(TAG, "msg: %s", (char*)packet);
|
||||||
|
|
||||||
goto receive_cleanup;
|
goto receive_cleanup;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue