Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

RIOT: update to 2020.07 #72

Merged
merged 3 commits into from
Jul 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion RIOT
Submodule RIOT updated 4729 files
9 changes: 5 additions & 4 deletions coap-chat/coap.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,20 +93,21 @@ static size_t _send(uint8_t *buf, size_t len, char *addr_str)
memcpy(&remote.addr.ipv6[0], &addr.u8[0], sizeof(addr.u8));

/* parse port */
remote.port = GCOAP_PORT;
remote.port = CONFIG_GCOAP_PORT;

return gcoap_req_send(buf, len, &remote, NULL, NULL);
}

int coap_post(char *addr, char *msgbuf, size_t msglen)
{
assert(msglen < GCOAP_PDU_BUF_SIZE);
assert(msglen < CONFIG_GCOAP_PDU_BUF_SIZE);

coap_pkt_t pdu;
uint8_t buf[GCOAP_PDU_BUF_SIZE];
uint8_t buf[CONFIG_GCOAP_PDU_BUF_SIZE];
size_t len = 0;

gcoap_req_init(&pdu, buf, GCOAP_PDU_BUF_SIZE, COAP_POST, COAP_CHAT_PATH);
gcoap_req_init(&pdu, buf, CONFIG_GCOAP_PDU_BUF_SIZE,
COAP_POST, COAP_CHAT_PATH);

memcpy(pdu.payload, msgbuf, msglen);

Expand Down
2 changes: 1 addition & 1 deletion spectrum-scanner/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void spectrum_scanner(unsigned long interval_us)

while (1) {
/* Stack optimization, statically allocate this buffer */
static float ed_average[GNRC_NETIF_NUMOF][IEEE802154_CHANNEL_MAX + 1];
float ed_average[netif_numof][IEEE802154_CHANNEL_MAX + 1];

memset(ed_average, 0, sizeof(ed_average));

Expand Down
2 changes: 1 addition & 1 deletion spectrum-scanner/tools/plot_rssi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (C) 2017 Eistec AB
#
Expand Down