use lorcomm send_message

This commit is contained in:
Morgan 'ARR\!' Allen 2020-04-22 22:21:16 -07:00
parent cf3df53b18
commit dd3c6f7190

View file

@ -5,6 +5,8 @@
#include "argtable3/argtable3.h"
#include "esp32-lora.h"
#include "lorcomm.h"
#include "main.h"
static struct {
struct arg_str *msg;
@ -21,7 +23,7 @@ int send(int argc, char **argv) {
return 1;
}
lora32_send((lora32_cfg_t*)send_args.lora, send_args.msg->sval[0], strlen(send_args.msg->sval[0]));
send_message((lora32_cfg_t*)send_args.lora, send_args.msg->sval[0]);
return 0;
}