8000 Squashed commit of the following: · pycom/pycom-micropython-sigfox@323205c · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 323205c

Browse files
author
iwahdan88
committed
Squashed commit of the following:
commit a3a8dec Author: iwahdan88 <islam@pycom.io> Date: Fri Feb 8 20:37:05 2019 +0100 esp32/modlte: minor fix commit 52ece9c Author: iwahdan88 <islam@pycom.io> Date: Fri Feb 8 20:13:19 2019 +0100 Updated Pybytes scripts + updated pycom version commit 2b28d49 Author: Islam Wahdan <islam@pycom.io> Date: Fri Feb 8 19:19:45 2019 +0100 esp32/make: Fix Makefile bug where SIPY FIPY and LOPY4 excluded secure boot + fix bug in may-build-check.sh (#18) commit e078fcc Author: Catalin Ioana <catalin.ioana@pycom.io> Date: Fri Feb 8 20:18:11 2019 +0200 Pymesh feature added from Pygo to Lopy (#16) * Squashed all openthread commits into a single one. esp32/mesh: saving settings in NVM; RSSI is computed considering SNR lora-mesh: forced Lora MAC as 802.15.4 Extended Address (not random anymore) esp32/lora: openthread socket UPD packets are 512B max, and 8 are buffered esp32/lora: added lora.mstatus, role, neighbors, routers micropy commands esp32/lora: increased mesh task priority (6), delay just 1ms, lora deinit esp32/lora: added mesh rx callback, increased mpy isr stack; removed server task esp32/mods added machtouch, frozen python scripts for oled, pytrack and msgpack esp32: openthread synch'ed with branch openthread_1_Nov from pycom-esp-idf sigfox task not started, some micropy wrapper for busy channel Lora sleep time decreased Lora LBT implemented openthread: 14 Dev 2018, fixed NVS usage, RSSI without SNR esp32: openthread cli fixed esp32: modlora added Border Router * Squashed all openthread commits into a single one. esp32/mesh: saving settings in NVM; RSSI is computed considering SNR lora-mesh: forced Lora MAC as 802.15.4 Extended Address (not random anymore) esp32/lora: openthread socket UPD packets are 512B max, and 8 are buffered esp32/lora: added lora.mstatus, role, neighbors, routers micropy commands esp32/lora: increased mesh task priority (6), delay just 1ms, lora deinit esp32/lora: added mesh rx callback, increased mpy isr stack; removed server task esp32/mods added machtouch, frozen python scripts for oled, pytrack and msgpack esp32: openthread synch'ed with branch openthread_1_Nov from pycom-esp-idf sigfox task not started, some micropy wrapper for busy channel Lora sleep time decreased Lora LBT implemented openthread: 14 Dev 2018, fixed NVS usage, RSSI without SNR esp32: openthread cli fixed esp32: modlora added Border Router * esp32/application.mk: added group of lora openthread files, buit only if OPENTHREAD flag is enable (yes by default) * esp32: added modmesh.c as micropy wrapper for mesh commands from modlora.c * esp32/mods/modmesh: added Mesh.deinit command, removed debug, made functions static * esp32/lib: updated idf libraries, from idf_v3.1 * esp32/modmesh: modmesh task is started dinamically at Lora.Mesh() and erased at Lora.Mesh.deinit() commit ad55267 Author: Islam Wahdan <islam@pycom.io> Date: Fri Feb 8 18:11:37 2019 +0100 esp32/modlte: Added factory modem reset option , method to check UE coverage and Bug fixes (#17) commit 98000bb Author: Martijn Thé <martijnthe@users.noreply.github.com> Date: Fri Feb 1 17:15:07 2019 +0100 build config: make openthread over lora a build-time configuration option (#253) Adds a make variable to disable openthread. By default it's still enabled. To disable it, add `OPENTHREAD=off` to the `make` invocation. This shaves off 160KB of the .bin, making the firmware fit in the old OTA slot of 1536KB. commit 1eb354a Author: Géza Husi <husigeza91@gmail.com> Date: Thu Jan 31 10:30:12 2019 +0100 esp32/mods/modusocket.c: adding do_handshake for non-blocking sockets (#13) commit 733cf7e Author: Islam Wahdan <islam@pycom.io> Date: Thu Jan 31 10:28:33 2019 +0100 esp32/mphal: Fix issue causing Device crash when safe booting (CTRL-F) while BLE/Wlan enabled (#15) commit 7ce6f7e Author: Géza Husi <husigeza91@gmail.com> Date: Wed Jan 30 21:27:10 2019 +0100 esp32/mpthreadport.c: fix an issue in cleaning up user threads during of soft-reset (#14) Fixes issue [PYFW-197] commit a83e360 Author: iwahdan88 <islam@pycom.io> Date: Mon Jan 28 19:14:23 2019 +0100 Esp32/frozen/MQTTlib: Gracefully handle EAGAIN return of Socket.write commit f2a33ba Author: iwahdan88 <islam@pycom.io> Date: Wed Jan 23 18:41:12 2019 +0100 Fix linking Issue commit 622a235 Merge: b886f41 1058d3b Author: iwahdan88 <islam@pycom.io> Date: Wed Jan 23 18:24:58 2019 +0100 Merge remote-tracking branch 'public/release-candidate' # Conflicts: # esp32/pycom_version.h commit b886f41 Author: iwahdan88 <islam@pycom.io> Date: Tue Jan 22 11:17:41 2019 +0100 IDF v3.1 update commit a6ebe1e Author: iwahdan88 <islam@pycom.io> Date: Mon Jan 21 10:27:22 2019 +0100 Merge HEAD of release-candidate 1.20.0 commit 87f2d8b Author: iwahdan88 <islam@pycom.io> Date: Sat Jan 19 15:09:59 2019 +0100 esp32/ltepp: bug fix for lteppp suspend commit 0b6307f Author: iwahdan88 <islam@pycom.io> Date: Sat Jan 19 14:25:06 2019 +0100 Merge of Public repo [release-candidate] Head. commit c16daf9 Author: iwahdan88 <islam@pycom.io> Date: Fri Jan 18 18:40:25 2019 +0100 esp32: Updated Pypytes scripts commit a7a2e9e Author: iwahdan88 <islam@pycom.io> Date: Fri Jan 18 17:58:26 2019 +0100 esp32: help- Removed CRTL-D from PYBYTES build + minor fixes commit bda5261 Author: iwahdan88 <islam@pycom.io> Date: Fri Jan 18 17:04:01 2019 +0100 esp32: On Boot wifi AP defaults now to DEFAULT wifi ssid and Password commit ff3b397 Author: iwahdan88 <islam@pycom.io> Date: Fri Jan 18 16:54:18 2019 +0100 esp32: updated version commit 42f4108 Author: Islam Wahdan <islam@pycom.io> Date: Fri Jan 18 16:06:33 2019 +0100 Update to LTE module (#12) * Update modlte.c * esp32/modlte: Refactoring commit 81573b3 Author: iwahdan88 <islam@pycom.io> Date: Wed Jan 16 13:30:54 2019 +0100 esp32/lteppp: updated PPP Suspend mechanism commit d9085a4 Author: iwahdan88 <islam@pycom.io> Date: Tue Jan 15 21:51:40 2019 +0100 esp32/lteppp: improving lteppp suspend/resume mechanism commit c887d32 Author: iwahdan88 <islam@pycom.io> Date: Mon Jan 14 20:19:19 2019 +0100 esp32/lteppp: added suspen/resume functinality to lteppp commit 0650a29 Author: iwahdan88 <islam@pycom.io> Date: Thu Jan 17 20:02:19 2019 +0100 esp32: Minor bug fix for Secure Boot commit d8769fd Author: iwahdan88 <islam@pycom.io> Date: Wed Jan 16 17:46:45 2019 +0100 esp32: Removed CRTL-D function in PyBytes Firmware + minor bug fix - Removed CRTL-D function in PyBytes Firmware - Fixed `mpy-build-check.sh` and 'size_check.sh' scripts to handle PyBytes Build Directory commit 215fcd2 Author: iwahdan88 <islam@pycom.io> Date: Wed Jan 16 14:23:43 2019 +0100 esp32/sdkconfig.h: synced with IDF v3.1 commit a541954 Author: Christian Ehlers <cehlers@pycom.io> Date: Tue Jan 15 12:35:19 2019 +0100 Update sqnsupgrade (#11) From sqnsupgrade master commit d586893 Merge: 9e091a5 1b5eba3 Author: iwahdan88 <islam@pycom.io> Date: Mon Jan 14 22:17:24 2019 +0100 Merge branch 'attach-legacy' commit 9e091a5 Author: Christian Ehlers <cehlers@pycom.io> Date: Mon Jan 14 21:59:23 2019 +0100 esp32/modlte: updated * Setting APN with corresponding IP Protocol [IP / IPV6] * No more exception when calling `LTE.connect` when already connected * Setting Connection ID in Init function * Renamed `lte.dettach` to `lte.detach` with backward compatibility * Setting Connection ID and IP protocol type in attach method commit 1b5eba3 Author: iwahdan88 <islam@pycom.io> Date: Mon Jan 14 17:22:03 2019 +0100 esp32/modlte: Added flag for legacy attachment method commit dd002a2 Author: Géza Husi <husigeza91@gmail.com> Date: Sun Jan 13 12:52:25 2019 +0100 esp32/modnetwork.c: fix a linking issue for WIPY, LOPY, SIPY commit 12dcbdb Author: iwahdan88 <islam@pycom.io> Date: Fri Jan 11 15:14:05 2019 +0100 esp32/modnetwork: fixed wrong nic selection in case of AF_INET commit b3e3a8c Author: Christian Ehlers <cehlers@pycom.io> Date: Mon Jan 7 23:49:57 2019 +0100 Update modusocket.c Small updates & bugfixes commit 258876e Author: iwahdan88 <islam@pycom.io> Date: Mon Jan 7 20:47:04 2019 +0100 esp32/modusocket:Added mpy API to get/se/clear DNS Servers Ipv4 commit 6144e6d Merge: afcb3c4 38428ff Author: iwahdan88 <islam@pycom.io> Date: Mon Jan 7 16:49:52 2019 +0100 Merge branch 'master' of https://github.com/pycom/Firmware-Development commit afcb3c4 Merge: 4a859e2 978c9bb Author: iwahdan88 <islam@pycom.io> Date: Mon Jan 7 16:48:56 2019 +0100 Merged changes from v1.20.0 release-candidate commit 38428ff Author: Géza Husi <husigeza91@gmail.com> Date: Mon Jan 7 14:44:22 2019 +0100 mods/machspi.c: Fix the bug in pybspi_transfer() (#9) The parameter write=.. in spi.read() was ignored. Instead always 0x55 was sent. commit 4a859e2 Author: iwahdan88 <islam@pycom.io> Date: Mon Jan 7 13:36:04 2019 +0100 esp32/modlte: Enabled suspention of Mesh task in modem upgrade task commit 036a6d1 Author: iwahdan88 <islam@pycom.io> Date: Mon Jan 7 13:24:55 2019 +0100 es32/lib: updated IDF libs commit e3ca985 Author: iwahdan88 <islam@pycom.io> Date: Mon Jan 7 13:19:30 2019 +0100 esp32/frozen: updated MQTTMsgHandler.py commit adeebf1 Author: Daniel Campora <danielc@pycom.io> Date: Thu Jan 3 17:49:40 2019 +0100 esp32: Fixes in order to get the US915 certification passing. commit 9df2333 Author: Christian Ehlers <cehlers@pycom.io> Date: Mon Dec 17 19:26:10 2018 +0100 Update pycom_config.h Cosmetic fix (pointer name) commit 0372114 Author: iwahdan88 <islam@pycom.io> Date: Fri Dec 14 01:05:16 2018 +0200 esp32/micropython: correction to keyboard interrupts exposure Merge of Dev/master
1 parent a8a62b0 commit 323205c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1639
-746
lines changed

esp32/application.mk

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,17 @@ APP_LORA_SRC_C = $(addprefix lora/,\
192192
sx1276-board.c \
193193
sx1272-board.c \
194194
board.c \
195+
)
196+
197+
APP_LORA_OPENTHREAD_SRC_C = $(addprefix lora/,\
195198
otplat_alarm.c \
196199
otplat_radio.c \
197200
ot-settings.c \
198201
ot-log.c \
199-
ot-task.c \
202+
)
203+
204+
APP_MOD_MESH_SRC_C = $(addprefix mods/,\
205+
modmesh.c \
200206
)
201207

202208
APP_LIB_LORA_SRC_C = $(addprefix lib/lora/,\
@@ -305,6 +311,13 @@ ifeq ($(BOARD),$(filter $(BOARD), FIPY GPY))
305311
OBJ += $(addprefix $(BUILD)/, $(APP_LTE_SRC_C:.c=.o) $(APP_MODS_LTE_SRC_C:.c=.o))
306312
endif
307313

314+
# add OPENTHREAD code only if flag enabled and for LOPY, LOPY4 and FIPY
315+
ifeq ($(OPENTHREAD), on)
316+
ifeq ($(BOARD), $(filter $(BOARD), LOPY LOPY4 FIPY))
317+
OBJ += $(addprefix $(BUILD)/, $(APP_LORA_OPENTHREAD_SRC_C:.c=.o) $(APP_MOD_MESH_SRC_C:.c=.o))
318+
endif
319+
endif # ifeq ($(OPENTHREAD), on)
320+
308321
OBJ += $(addprefix $(BUILD)/, $(APP_MAIN_SRC_C:.c=.o) $(APP_HAL_SRC_C:.c=.o) $(APP_LIB_SRC_C:.c=.o))
309322
OBJ += $(addprefix $(BUILD)/, $(APP_MODS_SRC_C:.c=.o) $(APP_STM_SRC_C:.c=.o))
310323
OBJ += $(addprefix $(BUILD)/, $(APP_FATFS_SRC_C:.c=.o) $(APP_LITTLEFS_SRC_C:.c=.o) $(APP_UTIL_SRC_C:.c=.o) $(APP_TELNET_SRC_C:.c=.o))
@@ -325,6 +338,12 @@ ifeq ($(BOARD),$(filter $(BOARD), FIPY GPY))
325338
SRC_QSTR += $(APP_MODS_LTE_SRC_C)
326339
endif
327340

341+
ifeq ($(OPENTHREAD), on)
342+
ifeq ($(BOARD), $(filter $(BOARD), LOPY LOPY4 FIPY))
343+
SRC_QSTR += $(APP_MOD_MESH_SRC_C)
344+
endif
345+
endif # ifeq ($(OPENTHREAD), on)
346+
328347
# Append any auto-generated sources that are needed by sources listed in
329348
# SRC_QSTR
330349
SRC_QSTR_AUTO_DEPS +=
@@ -580,20 +599,14 @@ ifeq ($(SECURE), on)
580599
$(ECHO) $(SEPARATOR)
581600
endif #ifeq ($(SECURE), on)
582601
endif #ifeq ($(TARGET), $(filter $(TARGET), boot boot_app))
583-
ifeq ($(TARGET), $(filter $(TARGET), app boot_app))
584602

585603

604+
ifeq ($(TARGET), $(filter $(TARGET), app boot_app))
586605

587606
$(BUILD)/application.a: $(OBJ)
588607
$(ECHO) "AR $@"
589608
$ F987 (Q) rm -f $@
590609
$(Q) $(AR) cru $@ $^
591-
ifeq ($(BOARD), $(filter $(BOARD), SIPY FIPY LOPY4))
592-
$(BUILD)/application.elf: $(BUILD)/application.a $(BUILD)/esp32_out.ld
593-
$(ECHO) "LINK $@"
594-
$(Q) $(CC) $(APP_LDFLAGS) $(APP_LIBS) -o $@
595-
$(Q) $(SIZE) $@
596-
else
597610
$(BUILD)/application.elf: $(BUILD)/application.a $(BUILD)/esp32_out.ld $(SECURE_BOOT_VERIFICATION_KEY)
598611
ifeq ($(COPY_IDF_LIB), 1)
599612
$(ECHO) "COPY IDF LIBRARIES $@"
@@ -618,7 +631,6 @@ endif #ifeq ($(SECURE), on)
618631
$(ECHO) "LINK $@"
619632
$(Q) $(CC) $(APP_LDFLAGS) $(APP_LIBS) -o $@
620633
$(SIZE) $@
621-
endif #ifeq ($(BOARD), $(filter $(BOARD), SIPY FIPY LOPY4))
622634

623635
$(APP_BIN): $(BUILD)/application.elf $(PART_BIN) $(ORIG_ENCRYPT_KEY)
624636
$(ECHO) "IMAGE $@"
0 Bytes
Binary file not shown.

esp32/bootloader/lib/liblog.a

0 Bytes
Binary file not shown.

esp32/bootloader/lib/libmicro-ecc.a

0 Bytes
Binary file not shown.

esp32/bootloader/lib/libsoc.a

0 Bytes
Binary file not shown.

esp32/bootloader/lib/libspi_flash.a

0 Bytes
Binary file not shown.

esp32/frozen/Common/MQTTMsgHandler.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,10 @@ def _send_packet(self, packet):
222222
try:
223223
if self._sock:
224224
written = self._sock.write(packet)
225-
print('Packet sent. (Length: %d)' % written)
225+
if(written == None):
226+
written = -1
227+
else:
228+
print('Packet sent. (Length: %d)' % written)
226229
except socket.error as err:
227230
print('Socket send error {0}'.format(err))
228231
return False

esp32/frozen/Pybytes/_main.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,11 @@
6767

6868
# Please put your USER code below this line
6969

70-
# SEND VIRTUAL VALUE
70+
# SEND SIGNAL
7171
# You can currently send Strings, Int32, Float32 and Tuples to pybytes using this method.
72-
# Soon you will be able to send Coordinates, Longs, Unsigned numerical types, and more.
73-
# pybytes.send_signal(pin, value)
72+
# pybytes.send_signal(signalNumber, value)
7473

75-
# SEND SENSOR DATA THROUGH VIRTUAL PINS
74+
# SEND SENSOR DATA THROUGH SIGNALS
7675
# # If you use a Pysense, some libraries are necessary to access its sensors
7776
# # you can find them here: https://github.com/pycom/pycom-libraries
7877
#

esp32/frozen/Pybytes/_pybytes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def send_signal(self, pin, value):
102102

103103
def send_virtual_pin_value(self, persistent, pin, value):
104104
print("This function is deprecated and will be removed in the future. Use send_signal(signalNumber, value)")
105-
self.send_signal(pin, [value])
105+
self.send_signal(pin, value)
106106

107107
def __periodical_pin_callback(self, periodical_pin):
108108
if (periodical_pin.pin_type == __PERIODICAL_PIN.TYPE_DIGITAL):

esp32/frozen/Pybytes/_pybytes_connection.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,15 @@ def connect_lte(self, reconnect=True, check_interval=0.5):
122122
try:
123123
from network import LTE
124124
time.sleep(3)
125-
print_debug(1, 'LTE init(carrier={})'.format(lte_cfg.get('carrier')))
125+
print_debug(1, 'LTE init(carrier={}, cid={})'.format(lte_cfg.get('carrier'), lte_cfg.get('cid', 1)))
126126
self.lte = LTE(carrier=lte_cfg.get('carrier')) # instantiate the LTE object
127-
print_debug(1, 'LTE attach(band={}, apn={})'.format(lte_cfg.get('band'), lte_cfg.get('apn')))
128-
self.lte.attach(band=lte_cfg.get('band'), apn=lte_cfg.get('apn')) # attach the cellular modem to a base station
127+
print_debug(1, 'LTE attach(band={}, apn={}, type={})'.format(lte_cfg.get('band'), lte_cfg.get('apn'), lte_cfg.get('type')))
128+
self.lte.attach(band=lte_cfg.get('band'), apn=lte_cfg.get('apn'), type=lte_cfg.get('type')) # attach the cellular modem to a base station
129129
while not self.lte.isattached():
130130
time.sleep(0.25)
131131
time.sleep(1)
132-
print_debug(1, 'LTE connect(cid={})'.format(lte_cfg.get('cid',1)))
133-
self.lte.connect(cid=lte_cfg.get('cid',1)) # start a data session and obtain an IP address
132+
print_debug(1, 'LTE connect()')
133+
self.lte.connect() # start a data session and obtain an IP address
134134
print_debug(1, 'LTE is_connected()')
135135
while not self.lte.isconnected():
136136
time.sleep(0.25)

esp32/hal/esp32_mphal.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
#include "modmachine.h"
3535
#include "updater.h"
3636
#include "bootloader.h"
37+
#include "modwlan.h"
38+
#include "modbt.h"
3739

3840
#include "freertos/FreeRTOS.h"
3941
#include "freertos/task.h"
@@ -190,6 +192,9 @@ void mp_hal_delay_ms(uint32_t delay) {
190192
void mp_hal_reset_safe_and_boot(bool reset) {
191193
boot_info_t boot_info;
192194
uint32_t boot_info_offset;
195+
/* Disable Wifi/BT to avoid cache region being accessed since it will be disabled when updating Safe boot flag in flash */
196+
wlan_deinit(NULL);
197+
bt_deinit(NULL);
193198
if (updater_read_boot_info (&boot_info, &boot_info_offset)) {
194199
boot_info.safeboot = SAFE_BOOT_SW;
195200
updater_write_boot_info (&boot_info, boot_info_offset);

esp32/lib/libbootloader_support.a

0 Bytes
Binary file not shown.

esp32/lib/libbt.a

0 Bytes
Binary file not shown.

esp32/lib/libcxx.a

0 Bytes
Binary file not shown.

esp32/lib/libdriver.a

0 Bytes
Binary file not shown.

esp32/lib/libesp32.a

-12 Bytes
Binary file not shown.

esp32/lib/libesp_adc_cal.a

0 Bytes
Binary file not shown.

esp32/lib/libexpat.a

0 Bytes
Binary file not shown.

esp32/lib/libfreertos.a

0 Bytes
Binary file not shown.

esp32/lib/libheap.a

0 Bytes
Binary file not shown.

esp32/lib/libjsmn.a

0 Bytes
Binary file not shown.

esp32/lib/libjson.a

0 Bytes
Binary file not shown.

esp32/lib/liblog.a

0 Bytes
Binary file not shown.

esp32/lib/liblwip.a

0 Bytes
Binary file not shown.

esp32/lib/libmbedtls.a

0 Bytes
Binary file not shown.

esp32/lib/libmicro-ecc.a

0 Bytes
Binary file not shown.

esp32/lib/libnewlib.a

0 Bytes
Binary file not shown.

esp32/lib/libnghttp.a

0 Bytes
Binary file not shown.

esp32/lib/libnvs_flash.a

0 Bytes
Binary file not shown.

esp32/lib/libopenssl.a

0 Bytes
Binary file not shown.

esp32/lib/libopenthread.a

898 KB
Binary file not shown.

esp32/lib/libpthread.a

0 Bytes
Binary file not shown.

esp32/lib/libsdmmc.a

0 Bytes
Binary file not shown.

esp32/lib/libsmartconfig_ack.a

0 Bytes
Binary file not shown.

esp32/lib/libsoc.a

0 Bytes
Binary file not shown.

esp32/lib/libspi_flash.a

0 Bytes
Binary file not shown.

esp32/lib/libtcpip_adapter.a

0 Bytes
Binary file not shown.

esp32/lib/libvfs.a

0 Bytes
Binary file not shown.

esp32/lib/libwpa_supplicant.a

0 Bytes
Binary file not shown.

esp32/lib/libxtensa-debug-module.a

0 Bytes
Binary file not shown.

esp32/lora/ot-log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include "ot-log.h"
1515

1616
#include "pycom_config.h"
17-
#include <openthread/types.h>
1817
#include <openthread/config.h>
1918
#include <openthread/platform/alarm-milli.h>
2019
#include <openthread/platform/uart.h>
@@ -73,6 +72,7 @@ void otPlatLogBufHex(const uint8_t *aBuf, uint16_t aBufLength) {
7372
for (int i = 0; i < aBufLength; i++) {
7473
length += sprintf(&logString[length], "%x ", aBuf[i]);
7574
}
75+
logString[length++] = '\n';
7676
}
7777

7878
void otPlatLogFlush(void) {

0 commit comments

Comments
 (0)
0