8000 int32 overflow because of to late cast · Issue #1 · pycom/pycom-micropython-sigfox · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

int32 overflow because of to late cast #1

Closed
livius2 opened this issue Mar 28, 2017 · 2 comments

int32 overflow because of to late cast #1

livius2 opened this issue Mar 28, 2017 · 2 comments

Comments

@livius2
Copy link
livius2 commented Mar 28, 2017

int32 overflow because of to late cast

STATIC mp_obj_t machine_deepsleep (uint n_args, const mp_obj_t *arg) {
    mperror_enable_heartbeat(false);
    bt_deinit(NULL);
    wlan_deinit(NULL);
    if (n_args == 0) {
        esp_deep_sleep_start();
    } else {
        esp_deep_sleep((uint64_t)(mp_obj_get_int(arg[0]) * 1000));
    }
}

but should be

 esp_deep_sleep((uint64_t)mp_obj_get_int(arg[0]) * 1000);
@jmarcelino
Copy link

@danicampora
Copy link

Already solved, thanks @livius2 and @jmarcelino

iwahdan88 pushed a commit that referenced this issue Dec 7, 2018
… in Pycom mod

* Re-enable Fatfs on /flash (#1)

* Dynamic choice of file system type (WIP)

* Dynamic choice of file system type (WIP)

* Dynamic choice of file system type (WIP)

Fix Sigfox initialization

* Fix crash in modsigfox.c

Based on husigeza/pycom-micropython-sigfox@277275a

* Improved pycom.bootmgr() function, add more #ifndef FS_USE_LITTLEFS

based on Geza's recommendation.

* esp32/mods: updated bootmgr API in Pycom module to return tuple + raise exeptions in case of value errors
X-Ryl669 pushed a commit to X-Ryl669/pycom-micropython-sigfox that referenced this issue May 12, 2023
… in Pycom mod

* Re-enable Fatfs on /flash (pycom#1)

* Dynamic choice of file system type (WIP)

* Dynamic choice of file system type (WIP)

* Dynamic choice of file system type (WIP)

Fix Sigfox initialization

* Fix crash in modsigfox.c

Based on husigeza/pycom-micropython-sigfox@277275a

* Improved pycom.bootmgr() function, add more #ifndef FS_USE_LITTLEFS

based on Geza's recommendation.

* esp32/mods: updated bootmgr API in Pycom module to return tuple + raise exeptions in case of value errors
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0