diff --git a/src/AsyncJson.h b/src/AsyncJson.h index 816bd3c..d2e7672 100644 --- a/src/AsyncJson.h +++ b/src/AsyncJson.h @@ -18,15 +18,15 @@ }); */ - -#pragma once +#ifndef ASYNC_JSON_H_ +#define ASYNC_JSON_H_ #include /* * Json Response * */ -class ChunkPrint : public Print{ +class ChunkPrint : public Print { private: uint8_t* _destination; size_t _to_skip; @@ -35,7 +35,7 @@ class ChunkPrint : public Print{ public: ChunkPrint(uint8_t* destination, size_t from, size_t len) : _destination(destination), _to_skip(from), _to_write(len), _pos{0} {} - virtual ~ChunkPrint(); + virtual ~ChunkPrint(){} size_t write(uint8_t c){ if (_to_skip > 0) { _to_skip--; @@ -74,4 +74,5 @@ class AsyncJsonResponse: public AsyncAbstractResponse { _root.printTo( dest ) ; return len; } -}; \ No newline at end of file +}; +#endif