Skip to content

Instantly share code, notes, and snippets.

@jasongao
jasongao / gist:d19952902c19363d3c16
Created December 9, 2014 01:39
Edits to FTDISerialDriver.java to set FTDI latency timer
// FTDISerialDriver.java
/**
* Set latency timer.
*/
private static final int SIO_SET_LATENCY_TIMER_REQUEST = 9;
public int setLatencyTimer(int latency) throws IOException {
if (latency < 1 || latency > 255) {
# prep
sudo apt-get install git subversion
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=`pwd`/depot_tools:$PATH
# install jdk
# https://code.google.com/p/chromium/wiki/AndroidBuildInstructions?#Install_prerequisites
mkdir webrtc
cd webrtc/