better pongoOS logging

This commit is contained in:
Nick Chan committed 2023-01-27 22:06:43 +08:00
1 parent 2c5997cd28
commit 98be5af558
1 file changed
+5 -1
+5 -1
View File
@@ -338,7 +338,11 @@ int issue_pongo_command(usb_device_handle_t handle, char *command)
LOG(LOG_ERROR, "Pongo command %s too long (max %d)", command, CMD_LEN_MAX - 2);
return EINVAL;
}
LOG(LOG_VERBOSE, "Executing PongoOS command: '%s'", command);
if (verbose < 3 || verbose > 4) {
LOG(LOG_VERBOSE, "Executing PongoOS command: '%s'", command);
} else {
printf("%s\n", command);
}
snprintf(command_buf, 512, "%s\n", command);
len = strlen(command_buf);
ret = USBControlTransfer(handle, 0x21, 4, 1, 0, 0, NULL, NULL);