more work

This commit is contained in:
Morgan 'ARR\!' Allen 2020-03-03 17:42:07 -08:00
parent 7e982fbbb7
commit 8785160ff5

View file

@ -102,14 +102,9 @@ static void handle_lora_receive(uint8_t size) {
free(msg);
} else if(packet->type == ROUTING) {
// 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 {
ESP_LOGW(TAG, "Unknown packet type: %02X", packet->type);
ESP_LOGW(TAG, "msg: %s", (char*)packet);
goto receive_cleanup;
}