restore list's state after empty

This commit is contained in:
Nicu Hodos 2024-06-30 13:16:11 +02:00
parent 728043a606
commit b682c59d33
2 changed files with 23 additions and 25 deletions

View File

@ -1,27 +1,24 @@
{ {
"name": "ha-mqtt", "$schema": "https://raw.githubusercontent.com/platformio/platformio-core/develop/platformio/assets/schema/library.json",
"version": "1.0.0", "name": "ha-mqtt",
"description": "Home Assistant classes for integration with MQTT auto discovery", "version": "1.0.1",
"repository": "description": "Home Assistant classes for integration with MQTT auto discovery",
"repository": {
"type": "git",
"url": "https://git.hodos.ro/arduino/ha-mqtt.git"
},
"authors": [
{ {
"type": "git", "name": "Nicu Hodos",
"url": "https://git.hodos.ro/arduino/ha-mqtt.git" "email": "nicu@hodos.ro",
}, "maintainer": true
"authors": }
[ ],
{ "dependencies": {
"name": "Nicu Hodos", "bblanchon/ArduinoJson": "6.21.5",
"email": "nicu@hodos.ro", "marvinroger/AsyncMqttClient": "^0.9.0"
"maintainer": true },
} "license": "MIT",
], "frameworks": "arduino",
"dependencies": "platforms": "*"
{ }
"bblanchon/ArduinoJson": "6.21.5",
"arkhipenko/TaskScheduler": "^3.7.0",
"marvinroger/AsyncMqttClient": "^0.9.0"
},
"license": "MIT",
"frameworks": "arduino",
"platforms": "*"
}

View File

@ -30,6 +30,7 @@ struct List {
delete c; delete c;
c = n; c = n;
} }
first = last = nullptr;
} }
}; };