the destructor was not defined

This commit is contained in:
Me No Dev
2016-01-28 20:57:22 +02:00
parent fc2998604e
commit 3bce374c16

View File

@@ -18,15 +18,15 @@
}); });
*/ */
#ifndef ASYNC_JSON_H_
#pragma once #define ASYNC_JSON_H_
#include <ArduinoJson.h> #include <ArduinoJson.h>
/* /*
* Json Response * Json Response
* */ * */
class ChunkPrint : public Print{ class ChunkPrint : public Print {
private: private:
uint8_t* _destination; uint8_t* _destination;
size_t _to_skip; size_t _to_skip;
@@ -35,7 +35,7 @@ class ChunkPrint : public Print{
public: public:
ChunkPrint(uint8_t* destination, size_t from, size_t len) ChunkPrint(uint8_t* destination, size_t from, size_t len)
: _destination(destination), _to_skip(from), _to_write(len), _pos{0} {} : _destination(destination), _to_skip(from), _to_write(len), _pos{0} {}
virtual ~ChunkPrint(); virtual ~ChunkPrint(){}
size_t write(uint8_t c){ size_t write(uint8_t c){
if (_to_skip > 0) { if (_to_skip > 0) {
_to_skip--; _to_skip--;
@@ -75,3 +75,4 @@ class AsyncJsonResponse: public AsyncAbstractResponse {
return len; return len;
} }
}; };
#endif