9210 Commits

Author SHA1 Message Date
Rob Pilling
a23d4142d8 typescript: all boolean parameters can be 0 / 1 2024-10-10 20:51:35 +01:00
Gordon Williams
133933b82a X.on now always allocates an array - tidies up code (fix #2559) 2024-10-10 11:51:06 +01:00
Gordon Williams
b88a4d16b8 jsvObjectIterator is now safe even if not called on something iterable 2024-10-10 11:41:32 +01:00
Gordon Williams
d93c22352f Add jswrap_array_splice_i, slightly tidies up code for shift/unshift 2024-10-10 11:30:06 +01:00
Gordon Williams
f63c156187 removeListener while executing events no longer stops subsequent listeners from executing (#2151) 2024-10-10 11:28:21 +01:00
Gordon Williams
67da4057cb Add comment, these lines fix #2328 2024-10-10 10:51:31 +01:00
Gordon Williams
0c897746e0 Network: enable parsing of 'https' URL and TLS flag even even TLS not built in (#2410) 2024-10-10 10:48:31 +01:00
Gordon Williams
1ee728e269 fix build on board with no debugger 2024-10-10 10:41:55 +01:00
Gordon Williams
7105ca3fa2 Fix debugging of switch statements (fix #2562) 2024-10-10 10:26:23 +01:00
Gordon Williams
e770407976 Ensure randInt returns full 32 bits, so we can do a=new Uint32Array();E.mapInPlace(a,a,Math.randInt) 2024-10-10 10:14:13 +01:00
Gordon Williams
3dcf656455 comment 2024-10-10 10:13:20 +01:00
Gordon Williams
5c1b7ab3c5 Ensure Math.random() can never be 1 as per spec (was unlikely before, but possible)
Add Math.randInt: not in spec, but very useful for embedded
2024-10-10 09:29:39 +01:00
Gordon Williams
ad0f468805 Bangle.js: Added fastpaths for 2 and 4 bit arraybuffers, and massively improve 1 bit fills 2024-10-09 18:36:45 +01:00
Gordon Williams
ec1ec87627 Puck.js: Remove networking support from default build, add PUCKJS_NETWORK -> espruino_2vxx_puckjs_network.zip builds for those that need it 2024-10-08 14:10:17 +01:00
Gordon Williams
68a9db0d08 Waveform: Add ability to play directly from Storage 2024-10-08 12:37:42 +01:00
Gordon Williams
471847f013 Waveform: Add 'npin' option to allow +/- output on two pins 2024-10-08 11:50:59 +01:00
Gordon Williams
6d9495dc62 STM32F4: Update stm32f4xx_ll_usb to fix over-buffered USB CDC tx after being woken from deep sleep 2024-10-07 16:58:21 +01:00
Gordon Williams
8a6aa36c16 Bangle.js: Remove debug log messages from E.showScroller (#2564)
Adding minified code
2024-10-07 10:07:18 +01:00
Gordon Williams
aa4218de09
Merge pull request #2564 from thyttan/showscroller-q3
E_showScroller_Q3: comment out prints to console
2024-10-07 10:05:22 +01:00
thyttan
3ba1c56129 E_showScroller_Q3: comment out prints to console 2024-10-06 21:10:58 +02:00
Gordon Williams
2db9f15ec2 fix build issue 2024-10-04 09:30:18 +01:00
Gordon Williams
c163e85a94 Don't check hispeed flag unless we're on Nordic 2024-10-04 09:21:13 +01:00
Gordon Williams
980f5f06dd ESP32: Timers are now turned off when requested - digitalPulse/soft pwm/writeAtTime more accurate 2024-10-04 09:20:54 +01:00
Gordon Williams
880849b461 remove annoying extra level of indirection for timer functions 2024-10-04 09:06:22 +01:00
Gordon Williams
754d379b64 Ignore DLE (0x10) character wherever it is in the input - this solves a big hang that was happening when the IDE tried to upload a file 2024-10-03 13:00:49 +01:00
Gordon Williams
05a75e1336 nRF5x: Don't add BLE UART write events into the input buffer 2024-10-03 12:03:54 +01:00
Gordon Williams
609dabbe67 document Waveform events 2024-10-03 12:02:00 +01:00
Gordon Williams
5af63956ee Increase Jolt.js input buffer size for faster/more reliable comms 2024-10-03 10:48:43 +01:00
Gordon Williams
c543895550 Jolt.js: Increase Storage area from 40kb to 400kb 2024-10-03 10:33:59 +01:00
Gordon Williams
6af8c757db nRF5x: When finding the CCCD for a Bluetooth Characteristic, now check at +2 as well as +1 (fix Bluefruit NUS TX) 2024-10-02 10:07:57 +01:00
Gordon Williams
ac7c5ae631 nRF5x: When finding the CCCD for a Bluetooth Characteristic, now check before as well as after (fix Bluefruit NUS TX) 2024-10-02 10:04:04 +01:00
Gordon Williams
beba579cf8 documentation 2024-10-02 09:40:21 +01:00
Gordon Williams
c776b2ca0c Bangle.js: Remove meridian from default locale.time function (to match 'Languages' app)
Fix https://github.com/espruino/EspruinoDocs/pull/738
2024-09-30 10:56:54 +01:00
Gordon Williams
7a340e8899 Ensure x%Infinity===x (fix #2542) 2024-09-23 10:58:27 +01:00
Gordon Williams
7212abf4d5 Added more comments about not doing stupid things, fix #2543 2024-09-23 10:50:04 +01:00
Gordon Williams
f09330e7ba First argument of operators is now dereferenced before parsing second argument (fix #2547) 2024-09-23 10:41:40 +01:00
Gordon Williams
221950174a Add documentation that doing something stupid will have a stupid result, fix #2553 2024-09-23 09:59:53 +01:00
Gordon Williams
0f3e94f739 Ensure Number("1A")==NaN, previously we just parsed the digits we could (fix #2555) 2024-09-23 09:56:37 +01:00
Gordon Williams
c8934a3dd5 Ensure that 1%0.0===NaN (fix #2556) 2024-09-23 09:45:33 +01:00
Gordon Williams
c2e013368c more firmware size tweaks 2024-09-20 10:13:36 +01:00
Gordon Williams
3b20382afc Saving space on ESP8266 build by pulling out FFT 2024-09-20 10:01:32 +01:00
Gordon Williams
831a568a2a Tweaks to ensure the build still fits on these devices 2024-09-20 09:17:47 +01:00
Gordon Williams
a6ae7ff79e Remove Ctrl-A/D/E/U/W code handling to free up flash space (the IDE/or VT100 terminals all use escape codes) 2024-09-20 09:08:40 +01:00
Gordon Williams
3028808803 Update changelog with recent additions 2024-09-19 15:54:45 +01:00
Gordon Williams
fd068866e1 Fix upload speed regression after cc96161ec774f9b6389e81b255a5bc77cf569ab4 2024-09-19 15:48:41 +01:00
Gordon Williams
49989873d5 Ensure we don't ctrl-c during packet transfer as this can interrupt the file writes 2024-09-19 15:48:35 +01:00
Gordon Williams
8cfb2051c8 USB: Disable software flow control as USB itself handles flow control 2024-09-19 15:48:29 +01:00
Gordon Williams
27a5f992f7 (new Array(3)).includes(undefined) fix 2024-09-19 15:48:22 +01:00
Gordon Williams
a1fa68c199 Fix issue where Ctrl-C could get lost in packets. We now always pass it through and ignore it in jsinteractive if we need to 2024-09-19 15:48:05 +01:00
Gordon Williams
3953d0d581 Fix regression with inserting chars mid-line after packet parsing added 2024-09-19 15:47:55 +01:00