Fixed broken CSMA random value
This commit is contained in:
		
							parent
							
								
									6f62a5394b
								
							
						
					
					
						commit
						dce3b25d64
					
				@ -1214,7 +1214,7 @@ void loop() {
 | 
				
			|||||||
              }
 | 
					              }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
              if (!dcd) {
 | 
					              if (!dcd) {
 | 
				
			||||||
                uint8_t csma_r = (uint8_t)random(20); // updated to increase bitrate: todo check
 | 
					                uint8_t csma_r = (uint8_t)random(256);
 | 
				
			||||||
                if (csma_p >= csma_r) {
 | 
					                if (csma_p >= csma_r) {
 | 
				
			||||||
                  flushQueue();
 | 
					                  flushQueue();
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user