Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our Code of Conduc
This project is licensed under the Apache 2 License - see the [LICENSE](LICENSE) file for details.

## Version
v3.0.1
v3.0.2



[Project OWL]: <https://www.project-owl.com/>
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"email": "info@project-owl.com",
"url": "https://www.project-owl.com"
},
"version": "3.0.0",
"version": "3.0.2",
"repository":
{
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ClusterDuck Protocol
version=3.0.0
version=3.0.2
author=Project OWL <info@project-owl.com>
maintainer=Project OWL <info@project-owl.com>
sentence=Mesh communication protocol.
Expand Down
5 changes: 3 additions & 2 deletions src/CdpPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ Each MUID: 04 byte array - Message unique ID
*/
#define MAX_MUID_PER_ACK 14

// header + 1 hop + 1 byte data
#define MIN_PACKET_LENGTH (HEADER_LENGTH + DUID_LENGTH + 1)
// header
// Should be header + 1 but need to test to make sure detector still works
#define MIN_PACKET_LENGTH HEADER_LENGTH

#define ARRAY_LENGTH(array) (sizeof(array) / sizeof((array)[0]))

Expand Down
4 changes: 2 additions & 2 deletions src/DuckNet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ int DuckNet::setupWebServer(bool createCaptivePortal, String html) {

});

webServer.on("/flipDetector", HTTP_POST, [&](AsyncWebServerRequest* request) {
webServer.on("/flipDetector", HTTP_GET, [&](AsyncWebServerRequest* request) {
//Run flip method
duckutils::flipDetectState();
request->send(200, "text/plain", "Success");
});

webServer.on("/flipDecrypt", HTTP_POST, [&](AsyncWebServerRequest* request) {
webServer.on("/flipDecrypt", HTTP_GET, [&](AsyncWebServerRequest* request) {
//Flip Decrypt State
loginfo("Flipping Decrypt");

Expand Down
3 changes: 3 additions & 0 deletions src/DuckRadio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ int DuckRadio::readReceivedData(std::vector<byte>* packetBytes) {
if (packet_length < MIN_PACKET_LENGTH) {
logerr("ERROR handlePacket rx data size invalid: " +
String(packet_length));

DuckRadio::setReceiveFlag(false);
int rxState = startReceive();
return DUCKLORA_ERR_HANDLE_PACKET;
}

Expand Down
2 changes: 1 addition & 1 deletion src/DuckUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace duckutils {

namespace {
std::string cdpVersion = "2.11.0";
std::string cdpVersion = "3.0.2";
}

Timer<> duckTimer = timer_create_default();
Expand Down
1 change: 1 addition & 0 deletions src/include/controlPanel.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ const char controlPanel[] PROGMEM = R"=====(
</form>
</div>
<a href="/flipDetector">Flip Detector</a>
<a href="/flipDecrypt">Flip Decrypt</a>
</div>
</body></html>

Expand Down