Commit 50ae26a4 authored by Martin's avatar Martin

Capitalize output

parent ec90011a
......@@ -61,6 +61,7 @@
$color="#000000";
$protocolType="N/A";
foreach($inputarray as $row) {
$row = strtoupper($row);
if (strpos($row, 'SUBMIT') !== false) {
$color="#000080";
$protocolType="Query";
......@@ -218,7 +219,7 @@ $protocolString
Restarts firmware. Seems to be used when flashing kernel." ;
break;
case (preg_match('/^0702 002a 0060 .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... ..../', $protocolString) ? true : false) :
$decodedTitle = "Read data off an address - P93 Sensitivity";
$decodedTitle = "Read data off an address - P93 Sensitivity (Bloody6)";
$decodedText = "$protocolType:
$protocolString
AA BBDD CCCC EEEE EEEE HHHH GGHH IIHH JJJJ JJJJ HHHH KKKK KKKK HHHH LLLL LLLL HHHH MMMM MMMM HHHH NNNN NNNN HHHH HHHH HHHH HHHH HHHH HHHH HHHH HHHH
......@@ -240,7 +241,7 @@ Meaning address X will give you data Y and X+1 is going to give you data Y +- 4
The data repeats itself after whole memory is read. The cutoff point is different for different chips (0x4000 for P93)" ;
break;
case (preg_match('/^0702 00.. ..60 .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... ..../', $protocolString) ? true : false) :
$decodedTitle = "Read data off an address";
$decodedTitle = "Read data off an address (Bloody6)";
$decodedText = "$protocolType:
$protocolString
AA BBDD CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC
......@@ -263,7 +264,7 @@ This function takes a lot more than just the mouse ID to work, but so far it is
" ;
break;
case (preg_match('/^0701 78.. .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... ..../', $protocolString) ? true : false) :
$decodedTitle = "Write data";
$decodedTitle = "Write data (Bloody6)";
$decodedText = "$protocolType:
$protocolString
EEAA BBDD CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC
......@@ -278,7 +279,7 @@ WRITING DATA TO THE MOUSE CAN PERMANENTLY BRICK IT. DO NOT PLAY AROUND WITH THIS
" ;
break;
case (preg_match('/^0701 0001 0060 .... 0000 .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... ..../', $protocolString) ? true : false) :
$decodedTitle = "Write data - Set mouse to flashing mode";
$decodedTitle = "Write data - Set mouse to flashing mode (Bloody 6)";
$decodedText = "$protocolType:
$protocolString
AA BBDD CCCC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment