Make sure standalone modes can be launched when connected on USB without client

This commit is contained in:
Philippe Teuwen
2019-06-02 23:20:02 +02:00
parent b7016e0bed
commit d7614684f8
6 changed files with 72 additions and 35 deletions

View File

@@ -436,7 +436,7 @@ void SendCapabilities(void) {
capabilities_t capabilities;
capabilities.version = CAPABILITIES_VERSION;
capabilities.via_fpc = reply_via_fpc;
capabilities.via_usb = reply_via_usb;
capabilities.baudrate = 0; // no real baudrate for USB-CDC
#ifdef WITH_FPC_USART
if (reply_via_fpc)
@@ -742,6 +742,10 @@ static void PacketReceived(PacketCommandNG *packet) {
*/
switch (packet->cmd) {
case CMD_QUIT_SESSION:
reply_via_fpc = false;
reply_via_usb = false;
break;
#ifdef WITH_LF
case CMD_SET_LF_T55XX_CONFIG:
setT55xxConfig(packet->oldarg[0], (t55xx_config *) packet->data.asBytes);