mirror of
				https://github.com/pvvx/RTL00_WEB.git
				synced 2025-07-31 20:31:05 +00:00 
			
		
		
		
	update
This commit is contained in:
		
							parent
							
								
									39f77eb92b
								
							
						
					
					
						commit
						a9ef4ff5c0
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -17,7 +17,7 @@ var rdnextflg = false;
 | 
			
		|||
var cur_idx = 0;
 | 
			
		||||
ws = new WebSocket('ws://rtl871x0/web.cgi');
 | 
			
		||||
ws.binaryType = 'arraybuffer';
 | 
			
		||||
ws.onopen = function(){ws.send('adc')};
 | 
			
		||||
ws.onopen = function(){ws.send('adc');ws.send('adc')};
 | 
			
		||||
ws.onmessage = function (event) {
 | 
			
		||||
	if(event.data instanceof ArrayBuffer) {
 | 
			
		||||
		var wordarray = new Uint16Array(event.data);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -33,7 +33,7 @@
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
//------------------------------------------------------------------------------
 | 
			
		||||
#define ADC_USE_TIMER TIMER3	// если назначено, то для чтения ADC используется таймер
 | 
			
		||||
//#define ADC_USE_TIMER TIMER3	// если назначено, то для чтения ADC используется таймер
 | 
			
		||||
								// иначе ADC int
 | 
			
		||||
//------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue