Browse Source

update

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

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

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

1
src/iflytop/core/core.hpp

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