From cf77533b6b7766e00d9e4257f91cdb4434f357e5 Mon Sep 17 00:00:00 2001 From: danny Date: Sat, 24 Aug 2024 08:10:34 +0200 Subject: [PATCH] Fixed build for newest platformio-version. Removed deprecated flutter features --- firmware/ESP32/src/openhaystack_main.c | 6 +- macless_haystack/web/index.html | 83 ++++++-------------------- macless_haystack/web/manifest.json | 4 +- 3 files changed, 24 insertions(+), 69 deletions(-) diff --git a/firmware/ESP32/src/openhaystack_main.c b/firmware/ESP32/src/openhaystack_main.c index 5b808e8..a04938e 100644 --- a/firmware/ESP32/src/openhaystack_main.c +++ b/firmware/ESP32/src/openhaystack_main.c @@ -145,7 +145,7 @@ void set_payload_from_key(uint8_t *payload, uint8_t *public_key) payload[29] = public_key[0] >> 6; } -uint get_key_count() +uint8_t get_key_count() { uint8_t keyCount[1]; if (load_bytes_from_partition(keyCount, sizeof(keyCount), 0) != ESP_OK) @@ -172,8 +172,8 @@ void app_main(void) ESP_LOGI(LOG_TAG, "application initialized"); /* Start with a random index */ - uint key_count = get_key_count(); - uint key_index = (esp_random() % key_count); + uint8_t key_count = get_key_count(); + uint8_t key_index = (esp_random() % key_count); uint8_t cycle = 0; while (true) { diff --git a/macless_haystack/web/index.html b/macless_haystack/web/index.html index 6b1231b..e180581 100644 --- a/macless_haystack/web/index.html +++ b/macless_haystack/web/index.html @@ -23,80 +23,35 @@ - + Macless Haystack + + + + - diff --git a/macless_haystack/web/manifest.json b/macless_haystack/web/manifest.json index b8777fe..4fc4de6 100644 --- a/macless_haystack/web/manifest.json +++ b/macless_haystack/web/manifest.json @@ -5,7 +5,7 @@ "display": "standalone", "background_color": "#0175C2", "theme_color": "#0175C2", - "description": "OpenHaystack2.0", + "description": "Macless Haystack", "orientation": "portrait-primary", "prefer_related_applications": false, "icons": [ @@ -32,4 +32,4 @@ "purpose": "maskable" } ] -} \ No newline at end of file +}