Compare commits

..

No commits in common. "4f836140375f371d887d179a536b21e02936847c" and "3b95b41be46e980a45f9e61bcc275a0cbd3d4893" have entirely different histories.

2 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/functional.h>
#include <pybind11/chrono.h>
#include "icsneo/device/device.h"

View File

@ -1951,7 +1951,7 @@ bool Device::setRTC(const std::chrono::time_point<std::chrono::system_clock>& ti
}
auto m51msg = std::dynamic_pointer_cast<Main51Message>(generic);
if(!m51msg || m51msg->data.empty() || m51msg->data.size() > 2) {
if(!m51msg || m51msg->data.size() != 1) {
report(APIEvent::Type::MessageFormattingError, APIEvent::Severity::Error);
return false;
}