7875 Commits

Author SHA1 Message Date
qucchia
aa97ab6c3d Use return_object for ArrayBufferView.buffer 2022-07-21 13:58:25 +02:00
qucchia
1cb82b2280 Explicitly explain some optional parameters 2022-07-21 12:49:45 +02:00
qucchia
573f062e98 Types: declare events 2022-07-21 12:49:26 +02:00
qucchia
72780a44f8 Auto-generate types for TypeScript 2022-07-21 12:23:31 +02:00
Gordon Williams
bece571f8e Bangle.js 2: Fix NRF.setAdvertising({},{scannable:false})
Bangle.js 2: Initial long range functionality (via `phy:"coded"` in `NRF.setAdvertising/setScan/requestDevice/findDevices`)
2022-07-20 17:13:18 +01:00
Gordon Williams
255b25505c really fix broken JSON 2022-07-20 17:00:33 +01:00
Gordon Williams
3e9d5f99d6 fix broken json 2022-07-20 16:58:53 +01:00
Gordon Williams
5ac00d984e tweak for new marked 2022-07-20 15:54:43 +01:00
Gordon Williams
1f2a3b4521 Fix errors creating type files 2022-07-20 15:52:00 +01:00
Gordon Williams
285a367a85 Bangle.js 2: Make Bangle.setBarometerPower retry twice if it has an I2C error 2022-07-15 08:46:58 +01:00
Gordon Williams
2df3fdad62 Merge branch 'master' of github.com:espruino/Espruino 2022-07-14 13:39:25 +01:00
Gordon Williams
f860f7e672 nRF5x: Call sd_ble_gattc_hv_confirm in response to BLE indications 2022-07-14 13:37:15 +01:00
Gordon Williams
edf480dbac
Merge pull request #2234 from BartS23/master
Add action "Test Factory Apps"
2022-07-14 12:52:09 +01:00
BartS23
12e33519cf Add action "Test Factory Apps" 2022-07-14 12:36:08 +02:00
Gordon Williams
2e0502cbb7 Storage: Don't align files <512 bytes to page boundaries - all files now stored in order (ref #2232) 2022-07-07 14:43:25 +01:00
Gordon Williams
db5542672e Fix for regression a few commits ago where if alignment was wrong, a written file could get 'lost' (fix #2231) 2022-07-07 14:38:43 +01:00
Gordon Williams
2d9178048b Merge branch 'master' of github.com:espruino/Espruino 2022-07-07 11:42:59 +01:00
Gordon Williams
3069cb514a After some benchmarks, ensure the FILENAME_TABLE is only created when we start to get a *lot* of extra files (adding 10ms to each Storage list call) 2022-07-07 11:39:27 +01:00
Gordon Williams
450aec51f4
Merge pull request #2230 from deirdreobyrne/DST
Daylight Savings Time support
2022-07-07 10:33:30 +01:00
Gordon Williams
2f52b37f00 Fix for potential recursion error if removing a FILENAME_TABLE in order to create a new table 2022-07-07 10:26:27 +01:00
Gordon Williams
ca04c97ba7 Minor storage speed improvement - stop scanning storage if we found the file 2022-07-07 10:12:45 +01:00
Gordon Williams
2f80e208d9 Bangle.js: Add "filename table" support to Bangle.js - avoids slow file read/list when there are many deleted/updated files in Storage 2022-07-06 17:05:18 +01:00
deirdreobyrne
1e7b72ae34 Code efficiencies added, but microbit1 still fails 2022-07-06 15:44:43 +01:00
Gordon Williams
9327f504c7 Bangle.js: Ensure E.showMessage background color comes from theme
ref   https://github.com/espruino/BangleApps/pull/2025
2022-07-06 11:14:06 +01:00
deirdreobyrne
d453b14b44
Merge branch 'espruino:master' into DST 2022-07-05 19:02:57 +01:00
deirdreobyrne
333cb9b304 Fixes arising from code review 2022-07-05 15:03:45 +01:00
Gordon Williams
3fa203980b free up some more memory for micro:bit 1 build again 2022-07-05 11:12:45 +01:00
Gordon Williams
3f145f948a nRF5x: Move advertising_start and restart_softdevice outside of IRQs (MEMORY_BUSY warnings less likely now) 2022-07-05 10:56:29 +01:00
Gordon Williams
00c832d34d code comments 2022-07-05 09:31:55 +01:00
Gordon Williams
c79fa0093f nRF5x: Add 'onWriteDesc' in NRF.setServices - allowing you to know when something subscribed for notifications 2022-07-05 09:27:49 +01:00
deirdreobyrne
6822cf78f3 Southern hemisphere tests revealed a bug! 2022-07-04 17:34:40 +01:00
deirdreobyrne
71f0d09dcb
Correcting a comment - got seasons backwards 2022-07-04 17:19:50 +01:00
deirdreobyrne
2454adfe15
Adding tests for 0.1s either side of DST changes 2022-07-04 17:17:33 +01:00
deirdreobyrne
301dbfda1e Bug fix, and added tests for DST code 2022-07-04 16:24:00 +01:00
deirdreobyrne
2f3e56f8d7 Incorrect test case! Assumed GMT rather than local 2022-07-04 15:31:54 +01:00
deirdreobyrne
58b82b67ec tabs to spaces, and bug fix 2022-07-04 15:29:46 +01:00
deirdreobyrne
3d6ddf41b5 bugfixes 2022-07-04 13:16:50 +01:00
deirdreobyrne
d60896c54d Tabs to spaces, starting debugging 2022-07-04 00:04:42 +01:00
deirdreobyrne
283b04e64d Now compiles 2022-07-03 22:45:34 +01:00
deirdreobyrne
81a57e5d45 Update jswrap_date.c 2022-07-03 12:56:49 +01:00
deirdreobyrne
f4ffcead0b Much of the code written 2022-07-03 00:22:30 +01:00
deirdreobyrne
67ce31c93c Should now be able to determine whether DST active 2022-07-02 21:09:21 +01:00
deirdreobyrne
4ff86bdf37 Start of date handling code 2022-07-02 19:06:17 +01:00
deirdreobyrne
5493f1d09b E.setDST and E.setTimeZone 2022-07-02 16:49:25 +01:00
deirdreobyrne
5f9567bcf3 Outline of the challenge. 2022-07-02 14:47:09 +01:00
deirdreobyrne
32b4db8824
Merge branch 'espruino:master' into DST 2022-07-02 13:39:05 +01:00
Gordon Williams
8458dfde3c Bangle.js2: Fix text size on buttons when they are tapped in E.showPrompt 2022-07-01 12:03:11 +01:00
Gordon Williams
b84fd88ab3 Bangle.js: Include the 'sched' library in installed apps (needed for alarm) (fix #2229) 2022-07-01 08:12:32 +01:00
Gordon Williams
b30d43030f nRF52: Fix recent regression which stopped reconnection after a bluetooth disconnect (fix #2226) 2022-06-29 10:10:14 +01:00
Gordon Williams
5575948185 Puck.js: Immediately after flashing new firmware, Puck.js now does a self-test and sets its BLE to PASS or FAIL 2022-06-27 17:13:42 +01:00