Commit 0de529f8 authored by Wenxi XU's avatar Wenxi XU
Browse files

非online时拒绝flush

parent d1eaf530
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -272,9 +272,9 @@ static void parse_error(struct AresProtocol *protocol, uint8_t data[], int8_t le
int dual_sync_flush(struct AresProtocol *protocol, sync_table_t *pack)
{
	struct dual_protocol_data *data = protocol->priv_data;
	// if (!data->online) {
	// 	return -EUNATCH;
	// }
	if (!data->online) {
		return -EUNATCH;
	}
	if (pack == NULL) {
		LOG_ERR("Sync pack is NULL.");
		return -EINVAL;