diff options
| author | Dan Halbert <halbert@adafruit.com> | 2020-07-21 13:29:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-21 13:29:10 -0400 |
| commit | 7f27fcd63af7253f4c0fc11f51d0635c1644c325 (patch) | |
| tree | 98fcf9b823681109fd558a9809e79183c8ec3649 | |
| parent | 12edb57aace86422c6e0165c5281efb72b5ee3b3 (diff) | |
| parent | e5f7adcf5d1257cefd33831d541b829ca8267aca (diff) | |
Merge pull request #3149 from DavePutz/issue2949
Issue#2949 Put in a check to prevent USB starvation by long calculations
| -rw-r--r-- | py/mpz.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -444,6 +444,10 @@ STATIC size_t mpn_mul(mpz_dig_t *idig, mpz_dig_t *jdig, size_t jlen, mpz_dig_t * } ilen = id - oidig; + // check to prevent usb starvation + #ifdef RUN_BACKGROUND_TASKS + RUN_BACKGROUND_TASKS; + #endif } return ilen; |
