瀏覽代碼

reset hasSam on slot status call

Eric Betts 2 年之前
父節點
當前提交
38dbd85eba
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      ccid.c

+ 1 - 0
ccid.c

@@ -41,6 +41,7 @@ void PC_to_RDR_IccPowerOn(SeaderUartBridge* seader_uart) {
 }
 
 void PC_to_RDR_GetSlotStatus(SeaderUartBridge* seader_uart) {
+    hasSAM = false; // If someone is calling this, reset sam state
     memset(seader_uart->tx_buf, 0, SEADER_UART_RX_BUF_SIZE);
     seader_uart->tx_buf[0] = SYNC;
     seader_uart->tx_buf[1] = CTRL;