Add cmd: usart btpin to change add-on BT PIN

This commit is contained in:
Philippe Teuwen 2019-05-08 01:24:46 +02:00
commit c867b3bc9a
3 changed files with 94 additions and 7 deletions

View file

@ -55,6 +55,15 @@ bool IfPm3FpcUsartHost(void) {
return pm3_capabilities.compiled_with_fpc_usart_host;
}
bool IfPm3FpcUsartHostFromUsb(void) {
// true if FPC USART Host support and if talking from USB-CDC interface
if (!IfPm3Present())
return false;
if (!pm3_capabilities.compiled_with_fpc_usart_host)
return false;
return !conn.send_via_fpc_usart;
}
bool IfPm3FpcUsartDevFromUsb(void) {
// true if FPC USART developer support and if talking from USB-CDC interface
if (!IfPm3Present())