pongo fetch stdout changes to resemble pongoterm

This commit is contained in:
Nick Chan committed 2023-02-20 16:29:37 +08:00
1 parent 21786017b0
commit f519162c61
1 file changed
+6 -1
+6 -1
View File
@@ -11,6 +11,7 @@
#include <sys/stat.h> // fstst
#include <palerain.h>
#include <ANSI-color-codes.h>
bool device_has_booted = 0;
int pongo_thr_running = 0;
@@ -152,7 +153,11 @@ int upload_pongo_file(usb_device_handle_t handle, unsigned char *buf, unsigned i
ret = USBBulkUpload(handle, buf, buf_len);
if (ret == USB_RET_SUCCESS)
{
LOG(LOG_VERBOSE, "Uploaded %llu bytes to PongoOS", (unsigned long long)buf_len);
if (verbose < 3 || verbose > 4) {
LOG(LOG_VERBOSE, "Uploaded %llu bytes to PongoOS", (unsigned long long)buf_len);
} else {
printf("/send mem:%p:%p\n" BCYN "[Uploaded %llu bytes]\n" CRESET, (void*)buf, (void*)(buf + buf_len), (unsigned long long)buf_len);
}
}
}
if (verbose >= 3) printf("pongoOS> ");