oop()
{
	const sleep = ms => new Promise(r => setTimeout(r, ms));
	var arraySend = new Uint8Array(255);
	var frameNo = 0|0;
	var lastTime = performance.now();
	let goodCount = 0;
	let badCount = 0;
	let kBsecAvg = 0;
	let xActionSecAvg = 0;
	while( true )
	{
		if( dev && !loopAbort )
		{
			var i = 0|0;
			for( var i = 0|0; i < 255|0; i++ )
				arraySend[i] = (Math.random()*256)|0;

			sendReport = dev.sendFeatureReport( 0xAA, arraySend ).catch( sendLoopError );
			if( !sendReport ) sendLoopError( "error cr