restore list's state after empty
This commit is contained in:
parent
728043a606
commit
b682c59d33
13
library.json
13
library.json
@ -1,24 +1,21 @@
|
|||||||
{
|
{
|
||||||
|
"$schema": "https://raw.githubusercontent.com/platformio/platformio-core/develop/platformio/assets/schema/library.json",
|
||||||
"name": "ha-mqtt",
|
"name": "ha-mqtt",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "Home Assistant classes for integration with MQTT auto discovery",
|
"description": "Home Assistant classes for integration with MQTT auto discovery",
|
||||||
"repository":
|
"repository": {
|
||||||
{
|
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.hodos.ro/arduino/ha-mqtt.git"
|
"url": "https://git.hodos.ro/arduino/ha-mqtt.git"
|
||||||
},
|
},
|
||||||
"authors":
|
"authors": [
|
||||||
[
|
|
||||||
{
|
{
|
||||||
"name": "Nicu Hodos",
|
"name": "Nicu Hodos",
|
||||||
"email": "nicu@hodos.ro",
|
"email": "nicu@hodos.ro",
|
||||||
"maintainer": true
|
"maintainer": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"dependencies":
|
"dependencies": {
|
||||||
{
|
|
||||||
"bblanchon/ArduinoJson": "6.21.5",
|
"bblanchon/ArduinoJson": "6.21.5",
|
||||||
"arkhipenko/TaskScheduler": "^3.7.0",
|
|
||||||
"marvinroger/AsyncMqttClient": "^0.9.0"
|
"marvinroger/AsyncMqttClient": "^0.9.0"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@ -30,6 +30,7 @@ struct List {
|
|||||||
delete c;
|
delete c;
|
||||||
c = n;
|
c = n;
|
||||||
}
|
}
|
||||||
|
first = last = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user