Skip to content

Instantly share code, notes, and snippets.

openpgp4fpr:ba239a4a831ade80e381dcc5abf127e6f9e8716a

@Babibubebon
Babibubebon / BluetoothGatt.cpp.patch
Created March 20, 2015 16:34
Open Web BoardのBLE実装でNotifucationのValue(onnotifyのgattEvent.value)が取れないのを修正
--- ./gecko/dom/bluetooth/bluedroid/BluetoothGatt.cpp.orig 2015-03-19 02:05:19.361468298 +0900
+++ ./gecko/dom/bluetooth/bluedroid/BluetoothGatt.cpp 2015-03-19 02:50:24.378295237 +0900
@@ -2922,7 +2922,9 @@
data_conn_id.AppendInt(mNotifyConnCommPara.connId);
nsString data_value;
-// data_value.APpendInt(mNotifyParaData);
+ char strValue[MAX_HEX_VAL_STR_LEN];
+ array2str(mNotifyParaData.value, mNotifyParaData.len, strValue, sizeof(strValue));
+ data_value = NS_ConvertUTF8toUTF16(strValue);
@Babibubebon
Babibubebon / DeviceOrientationControls.js
Created March 16, 2015 15:13
Firefox向けのDevice Orientationの修正
/* globals THREE */
/**
* DeviceOrientationControls - applies device orientation on object rotation
*
* @param {Object} object - instance of THREE.Object3D
* @constructor
*
* @author richt / http://richt.me
* @author WestLangley / http://github.com/WestLangley
* @author jonobr1 / http://jonobr1.com