diff --git a/pxtarget.json b/pxtarget.json index 1ad4ad50..355eb417 100644 --- a/pxtarget.json +++ b/pxtarget.json @@ -43,11 +43,19 @@ "microbit-serial": "" } }, + { + "type": "missingPackage", + "map": { + "radio\\s*\\.": "radio", + "bluetooth\\s*\\.": "bluetooth", + "devices\\s*\\.": "devices" + } + }, { "type": "api", "map": { - "bluetooth\\.uartRead\\((.*?)\\)": "bluetooth.uartReadUntil($1)", - "bluetooth\\.uartWrite\\((.*?)\\)": "bluetooth.uartWriteUntil($1)" + "bluetooth\\s*\\.uartRead\\s*\\((.*?)\\)": "bluetooth.uartReadUntil($1)", + "bluetooth\\s*\\.uartWrite\\s*\\((.*?)\\)": "bluetooth.uartWriteUntil($1)" } } ]