Compare commits
	
		
			No commits in common. "e26bb637ad260a6c12c0532d7ed187d45f7894e1" and "3425d893a149e9a11ce7e078ffa29ee587e10d92" have entirely different histories.
		
	
	
		
			e26bb637ad
			...
			3425d893a1
		
	
		
| 
						 | 
				
			
			@ -6,6 +6,7 @@ $command = 0x00;
 | 
			
		|||
$target = intval($_SESSION['LEDTARGETID']);
 | 
			
		||||
$unique = mt_rand(1, 2000000000);
 | 
			
		||||
 | 
			
		||||
echo "Target: ", $target;
 | 
			
		||||
$data = pack("LLLCL", PACKETFILTER[0], PACKETFILTER[1], $unique, $command, $target);
 | 
			
		||||
 | 
			
		||||
transmitMessage($data);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,6 +13,7 @@ $red = hexdec(substr($hex, 0, 2));
 | 
			
		|||
$green = hexdec(substr($hex, 2, 2));
 | 
			
		||||
$blue = hexdec(substr($hex, 4, 2));
 | 
			
		||||
 | 
			
		||||
var_dump($targets);
 | 
			
		||||
foreach ( $targets as $target ) {
 | 
			
		||||
   $target = intval($target);
 | 
			
		||||
   $unique = mt_rand(1, 2000000000);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,13 +0,0 @@
 | 
			
		|||
<?php
 | 
			
		||||
require 'header.php';
 | 
			
		||||
 | 
			
		||||
$targets = [1, 2, 3];
 | 
			
		||||
 | 
			
		||||
$command = 0x00;
 | 
			
		||||
 | 
			
		||||
foreach ( $targets as $target ) {
 | 
			
		||||
   $target = intval($target);
 | 
			
		||||
   $unique = mt_rand(1, 2000000000);
 | 
			
		||||
   $data = pack("LLLCL", PACKETFILTER[0], PACKETFILTER[1], $unique, $command, $target);
 | 
			
		||||
   transmitMessage($data);
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user