Skip to content

Commit

Permalink
fix pyo
Browse files Browse the repository at this point in the history
  • Loading branch information
pikasTech committed Aug 2, 2024
1 parent 4b27879 commit 08342ae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions port/linux/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
// "--gtest_filter=jrpc.client"
// "--gtest_filter=jrpc.BlockingRequestBetweenTwoJRPC"
// "--gtest_filter=jrpc.cmd"
// "--gtest_filter=jrpc.exec_get_val"
"--gtest_filter=jrpc.exec_get_val"
],
"stopAtEntry": false,
Expand Down
15 changes: 8 additions & 7 deletions src/PikaObj.c
Original file line number Diff line number Diff line change
Expand Up @@ -1942,8 +1942,8 @@ char _await_getchar(sh_getchar fn_getchar) {

/* return file size */
uint32_t _pikaShell_recv_file_direct(ShellConfig* cfg,
uint8_t* magic_code,
uint8_t** pbuff) {
uint8_t* magic_code,
uint8_t** pbuff) {
uint32_t size = 0;
for (int i = 0; i < 4; i++) {
uint8_t* size_byte = (uint8_t*)&size;
Expand Down Expand Up @@ -2057,9 +2057,9 @@ void _do_pikaScriptShell(PikaObj* self, ShellConfig* cfg) {
}
uint8_t* recv = NULL;
uint32_t size = 0;
if (magic_code[2] == 'y' && magic_code[3] == 'a'){
if (magic_code[2] == 'y' && magic_code[3] == 'a') {
size = _pikaShell_recv_file(cfg, magic_code, &recv);
}else{
} else {
size = _pikaShell_recv_file_direct(cfg, magic_code, &recv);
}
pika_platform_printf(
Expand All @@ -2073,8 +2073,10 @@ void _do_pikaScriptShell(PikaObj* self, ShellConfig* cfg) {
"=============== [ RUN] ===============\r\n");
pikaVM_runByteCodeInconstant(self, recv);
pikaFree(recv, size);
pika_platform_printf("%s", cfg->prefix);
continue;
// pika_platform_printf("%s", cfg->prefix);
// continue;
//! Return for example like lvgl handler to continue.
return;
}
if (magic_code[3] == 'a') {
_save_file(PIKA_SHELL_SAVE_APP_PATH, (uint8_t*)recv, size);
Expand Down Expand Up @@ -4821,7 +4823,6 @@ void pikaList_init(PikaObj* self) {
obj_setPtr(self, "list", list);
}


void pikaList_reverse(PikaList* self) {
pika_assert(NULL != self);
int top = pikaList_getSize(self);
Expand Down
2 changes: 1 addition & 1 deletion src/PikaVersion.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
#define PIKA_VERSION_MINOR 13
#define PIKA_VERSION_MICRO 3

#define PIKA_EDIT_TIME "2024/07/27 02:27:57"
#define PIKA_EDIT_TIME "2024/08/02 16:00:32"

0 comments on commit 08342ae

Please sign in to comment.