Browse Source

update

disinfection_machine
zhaohe 2 years ago
parent
commit
11ccc50026
  1. 3
      src/iflytop/components/zcanreceiver/zcanreceiverhost.hpp
  2. 3
      src/iflytop/core/core.hpp

3
src/iflytop/components/zcanreceiver/zcanreceiverhost.hpp

@ -16,6 +16,7 @@ namespace iflytop {
using namespace std; using namespace std;
using namespace zcr; using namespace zcr;
using namespace core;
class ZCanReceiverCMD { class ZCanReceiverCMD {
public: public:
@ -24,6 +25,8 @@ class ZCanReceiverCMD {
uint8_t subcmdid; uint8_t subcmdid;
uint8_t data[255 * 8]; uint8_t data[255 * 8];
size_t len; size_t len;
string toString() { return fmt::format("{}-{}:{} {}", packetindex, cmdid, subcmdid, StringUtils().bytesToString(data, len)); }
}; };
class ZCanReceiverHost { class ZCanReceiverHost {

3
src/iflytop/core/core.hpp

@ -4,4 +4,5 @@
#include "iflytop/core/components/timeutils.hpp" #include "iflytop/core/components/timeutils.hpp"
#include "iflytop/core/error/error_code.hpp" #include "iflytop/core/error/error_code.hpp"
#include "iflytop/core/spdlogfactory/logger.hpp" #include "iflytop/core/spdlogfactory/logger.hpp"
#include "iflytop/core/thread/thread.hpp"
#include "iflytop/core/thread/thread.hpp"
#include "iflytop/core/components/stringutils.hpp"
Loading…
Cancel
Save