浏览代码

vive: Remove commented json debug code.

Lubosz Sarnecki 6 年之前
父节点
当前提交
3658da9bd3
共有 1 个文件被更改,包括 1 次插入13 次删除
  1. 1 13
      src/drv_htc_vive/packet.c

+ 1 - 13
src/drv_htc_vive/packet.c

@@ -127,15 +127,8 @@ bool vive_decode_config_packet(vive_imu_config* result,
 	LOGD("Decompressed from %u to %u bytes\n",
 	     (mz_uint32)pkt.length, (mz_uint32)output_size);
 
-	//LOGD("Debug print all the RAW JSON things!\n%s", output);
-	//pUncomp should now be the uncompressed data, lets get the json from it
-	/** DEBUG JSON PARSER CODE **/
 	trim((char*)output, (char*)output, (unsigned int)output_size);
-	//LOGD("%s\n",output);
-	/*
-	FILE* dfp;
-	dfp = fopen("jsondebug.json","w");
-	json_enable_debug(3, dfp);*/
+
 	const nx_json* json = nx_json_parse((char*)output, 0);
 
 	if (json) {
@@ -157,10 +150,5 @@ bool vive_decode_config_packet(vive_imu_config* result,
 		return false;
 	}
 
-	/** END OF DEBUG JSON PARSER CODE **/
-
-//	free(pCmp);
-//	free(pUncomp);
-
 	return true;
 }