|  | @@ -242,7 +242,7 @@ bool SdioCard::stopTransmission(bool blocking)
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |      else
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  | -        uint32_t end = millis() + 100;
 | 
	
		
			
				|  |  | +        uint32_t end = millis() + 5000;
 | 
	
		
			
				|  |  |          while (millis() < end && isBusy())
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |              if (m_stream_callback)
 | 
	
	
		
			
				|  | @@ -400,6 +400,8 @@ bool SdioCard::writeSectors(uint32_t sector, const uint8_t* src, size_t n)
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |      else
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  | +        // TODO: Instead of CMD12 stopTransmission command, according to SD spec we should send stopTran token.
 | 
	
		
			
				|  |  | +        // stopTransmission seems to work in practice.
 | 
	
		
			
				|  |  |          return stopTransmission(true);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 |