Formatting and shrink build size on C3
This commit is contained in:
parent
e9d81c2826
commit
6f0d62d85e
@ -121,7 +121,7 @@ mp_obj_t common_hal_mdns_server_find(mdns_server_obj_t *self, const char *servic
|
|||||||
// Don't error if we're out of memory. Instead, truncate the tuple.
|
// Don't error if we're out of memory. Instead, truncate the tuple.
|
||||||
uint8_t added = 0;
|
uint8_t added = 0;
|
||||||
while (next != NULL) {
|
while (next != NULL) {
|
||||||
mdns_remoteservice_obj_t *service = gc_alloc(sizeof(mdns_remoteservice_obj_t), true, false);
|
mdns_remoteservice_obj_t *service = gc_alloc(sizeof(mdns_remoteservice_obj_t), GC_ALLOC_FLAG_HAS_FINALISER, false);
|
||||||
if (service == NULL) {
|
if (service == NULL) {
|
||||||
if (added == 0) {
|
if (added == 0) {
|
||||||
m_malloc_fail(sizeof(mdns_remoteservice_obj_t));
|
m_malloc_fail(sizeof(mdns_remoteservice_obj_t));
|
||||||
|
@ -34,18 +34,19 @@ CIRCUITPY_ESPIDF ?= 1
|
|||||||
CIRCUITPY_MODULE ?= none
|
CIRCUITPY_MODULE ?= none
|
||||||
|
|
||||||
ifeq ($(IDF_TARGET),esp32c3)
|
ifeq ($(IDF_TARGET),esp32c3)
|
||||||
CIRCUITPY_USB = 0
|
|
||||||
CIRCUITPY_ALARM = 0
|
CIRCUITPY_ALARM = 0
|
||||||
|
CIRCUITPY_AUDIOBUSIO = 0
|
||||||
CIRCUITPY_BLEIO = 1
|
CIRCUITPY_BLEIO = 1
|
||||||
CIRCUITPY_BLEIO_HCI = 0
|
CIRCUITPY_BLEIO_HCI = 0
|
||||||
CIRCUITPY_COUNTIO = 0
|
CIRCUITPY_COUNTIO = 0
|
||||||
CIRCUITPY_ROTARYIO = 0
|
|
||||||
CIRCUITPY_AUDIOBUSIO = 0
|
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
CIRCUITPY_FREQUENCYIO = 0
|
||||||
CIRCUITPY_IMAGECAPTURE = 0
|
CIRCUITPY_IMAGECAPTURE = 0
|
||||||
|
CIRCUITPY_MDNS = 0
|
||||||
CIRCUITPY_PARALLELDISPLAY = 0
|
CIRCUITPY_PARALLELDISPLAY = 0
|
||||||
|
CIRCUITPY_ROTARYIO = 0
|
||||||
CIRCUITPY_TOUCHIO ?= 1
|
CIRCUITPY_TOUCHIO ?= 1
|
||||||
CIRCUITPY_TOUCHIO_USE_NATIVE = 0
|
CIRCUITPY_TOUCHIO_USE_NATIVE = 0
|
||||||
|
CIRCUITPY_USB = 0
|
||||||
else ifeq ($(IDF_TARGET),esp32s3)
|
else ifeq ($(IDF_TARGET),esp32s3)
|
||||||
CIRCUITPY_BLEIO = 1
|
CIRCUITPY_BLEIO = 1
|
||||||
CIRCUITPY_BLEIO_HCI = 0
|
CIRCUITPY_BLEIO_HCI = 0
|
||||||
|
@ -140,7 +140,6 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(mdns_remoteservice_deinit_obj, mdns_remoteservi
|
|||||||
STATIC const mp_rom_map_elem_t mdns_remoteservice_locals_dict_table[] = {
|
STATIC const mp_rom_map_elem_t mdns_remoteservice_locals_dict_table[] = {
|
||||||
{ MP_ROM_QSTR(MP_QSTR_hostname), MP_ROM_PTR(&mdns_remoteservice_hostname_obj) },
|
{ MP_ROM_QSTR(MP_QSTR_hostname), MP_ROM_PTR(&mdns_remoteservice_hostname_obj) },
|
||||||
{ MP_ROM_QSTR(MP_QSTR_instance_name), MP_ROM_PTR(&mdns_remoteservice_instance_name_obj) },
|
{ MP_ROM_QSTR(MP_QSTR_instance_name), MP_ROM_PTR(&mdns_remoteservice_instance_name_obj) },
|
||||||
{ MP_ROM_QSTR(MP_QSTR_ipv4_address), MP_ROM_PTR(&mdns_remoteservice_instance_name_obj) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_service_type), MP_ROM_PTR(&mdns_remoteservice_service_type_obj) },
|
{ MP_ROM_QSTR(MP_QSTR_service_type), MP_ROM_PTR(&mdns_remoteservice_service_type_obj) },
|
||||||
{ MP_ROM_QSTR(MP_QSTR_protocol), MP_ROM_PTR(&mdns_remoteservice_protocol_obj) },
|
{ MP_ROM_QSTR(MP_QSTR_protocol), MP_ROM_PTR(&mdns_remoteservice_protocol_obj) },
|
||||||
{ MP_ROM_QSTR(MP_QSTR_port), MP_ROM_PTR(&mdns_remoteservice_port_obj) },
|
{ MP_ROM_QSTR(MP_QSTR_port), MP_ROM_PTR(&mdns_remoteservice_port_obj) },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user