diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2020-08-11 14:50:37 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2020-08-19 14:22:13 -0700 |
| commit | 7bdd243bf6f3cd84ddfd9cf6f35a2d6d8a6a415f (patch) | |
| tree | 5f5e4b98d6ffa479ecd1f032da01cc999afe3732 /shared-module | |
| parent | 3860991111511a9e4a60ea24f208b8de8f801ce7 (diff) | |
Ping works!
Diffstat (limited to 'shared-module')
| -rw-r--r-- | shared-module/ipaddress/__init__.c | 7 | ||||
| -rw-r--r-- | shared-module/ipaddress/__init__.h | 4 |
2 files changed, 1 insertions, 10 deletions
diff --git a/shared-module/ipaddress/__init__.c b/shared-module/ipaddress/__init__.c index 031f317aa..2fce9d8f5 100644 --- a/shared-module/ipaddress/__init__.c +++ b/shared-module/ipaddress/__init__.c @@ -27,14 +27,9 @@ #include "shared-bindings/ipaddress/__init__.h" #include "shared-bindings/ipaddress/IPv4Address.h" -mp_obj_t common_hal_ipaddress_new_ipv4address(mp_int_t value) { +mp_obj_t common_hal_ipaddress_new_ipv4address(uint32_t value) { ipaddress_ipv4address_obj_t* self = m_new_obj(ipaddress_ipv4address_obj_t); self->base.type = &ipaddress_ipv4address_type; common_hal_ipaddress_ipv4address_construct(self, (uint8_t*) &value, 4); return self; } - - -void ipaddress_ipaddress_to_esp_idf(mp_obj_t ip_address, ip_addr_t* esp_ip_address) { - // FIX THIS TOMORROW! -} diff --git a/shared-module/ipaddress/__init__.h b/shared-module/ipaddress/__init__.h index 9f1e00777..7d5f2c220 100644 --- a/shared-module/ipaddress/__init__.h +++ b/shared-module/ipaddress/__init__.h @@ -31,10 +31,6 @@ #include "py/obj.h" -#include "lwip/api.h" - mp_obj_t common_hal_ipaddress_new_ipv4(uint32_t value); -void ipaddress_ipaddress_to_esp_idf(mp_obj_t ip_address, ip_addr_t* esp_ip_address); - #endif // MICROPY_INCLUDED_SHARED_MODULE_IPADDRESS___INIT___H |
