chore.代码格式化、更新版本号、更新了一些脚本

This commit is contained in:
MistEO
2022-01-18 21:50:18 +08:00
parent 65414809b1
commit 3b85e1ea4b
12 changed files with 32 additions and 24 deletions

View File

@@ -101,7 +101,7 @@ asst::Controller::~Controller()
close(m_pipe_out[PIPE_READ]);
close(m_pipe_out[PIPE_WRITE]);
#endif
}
}
bool asst::Controller::connect_adb(const std::string & address)
{
@@ -594,9 +594,9 @@ bool asst::Controller::screencap()
size_t header_size = unzip_data.size() - std_size;
Log.trace("header size:", header_size);
bool is_all_zero = std::all_of(unzip_data.data() + header_size, unzip_data.data() + std_size,
bool is_all_zero = std::all_of(unzip_data.data() + header_size, unzip_data.data() + std_size,
[](uchar uch) -> bool {
return uch == 0;
return uch == 0;
});
if (is_all_zero) {
return false;