summaryrefslogtreecommitdiff
path: root/shared-module/ipaddress
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-08-11 14:50:37 -0700
committerScott Shawcroft <scott@tannewt.org>2020-08-19 14:22:13 -0700
commit7bdd243bf6f3cd84ddfd9cf6f35a2d6d8a6a415f (patch)
tree5f5e4b98d6ffa479ecd1f032da01cc999afe3732 /shared-module/ipaddress
parent3860991111511a9e4a60ea24f208b8de8f801ce7 (diff)
Ping works!
Diffstat (limited to 'shared-module/ipaddress')
-rw-r--r--shared-module/ipaddress/__init__.c7
-rw-r--r--shared-module/ipaddress/__init__.h4
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