Skip to content

Commit

Permalink
update: 简化netdrv的日志
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Jan 16, 2025
1 parent 5713c50 commit e7c9285
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions interface/src/wrap_ip_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@
#ifdef __LUATOS__
#include "luat_conf_bsp.h"
#include "luat_network_adapter.h"
#define LUAT_LOG_TAG "ps_ip_input"
#include "luat_log.h"
#endif

err_t __wrap_ps_ip_input(struct pbuf *p, struct netif *inp) {
u8_t ipVersion;
if (p != NULL) {
#ifdef LUAT_USE_ULWIP
//LLOGD("数据包下行 len %d", p->tot_len);
extern err_t ulwip_ip_input_cb(struct pbuf *p, struct netif *inp);
if (ERR_OK == ulwip_ip_input_cb(p, inp)) {
pbuf_free(p); // free the pbuf
Expand Down
4 changes: 3 additions & 1 deletion project/luatos/src/luat_netdrv_ec618.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ static void gprs_dataout(void* userdata, uint8_t* buff, uint16_t len) {
extern BOOL PsifRawUlOutput(UINT8, UINT8 *, UINT16);
// luat_netdrv_print_pkg("上行数据", buff, len);
BOOL ret = PsifRawUlOutput(1, buff, len);
LLOGD("gprs 数据上行 %d %p %d ret %d", 1, buff, len, ret);
if (ret == 0) {
LLOGD("gprs 数据上行 %d %p %d ret %d", 1, buff, len, ret);
}
}

luat_netdrv_t netdrv_gprs = {
Expand Down

0 comments on commit e7c9285

Please sign in to comment.