GainSpan Wi-Fi library see: http://mbed.org/users/gsfan/notebook/gainspan_wifi/
Dependents: GSwifi_httpd GSwifi_websocket GSwifi_tcpclient GSwifi_tcpserver ... more
Fork of GSwifi by
GainSpan Wi-Fi library
The GS1011 is an ultra low power 802.11b wireless module from GainSpan.
see: http://mbed.org/users/gsfan/notebook/gainspan_wifi/
ゲインスパン Wi-Fi モジュール ライブラリ
ゲインスパン社の低電力 Wi-Fiモジュール(無線LAN) GS1011 シリーズ用のライブラリです。
解説: http://mbed.org/users/gsfan/notebook/gainspan_wifi/
Diff: GSFunctionPointer.h
- Revision:
- 37:e61ea8267415
- Parent:
- 29:1c4419512941
--- a/GSFunctionPointer.h Mon Jun 24 07:36:48 2013 +0000 +++ b/GSFunctionPointer.h Wed Jun 26 02:39:59 2013 +0000 @@ -58,7 +58,7 @@ */ void attach(void (*function)(int, int) = 0) { _function = function; - _membercaller = NULL; + _object = 0; } /** Attach a member function @@ -77,11 +77,11 @@ /** Call the attached static or member function */ int call(int a, int b) { - if (_function != NULL) { + if (_function) { _function(a, b); return 0; } else - if (_membercaller != NULL) { + if (_object) { _membercaller(_object, _member, a, b); return 0; } @@ -90,7 +90,7 @@ void detach() { _function = NULL; - _membercaller = NULL; + _object = 0; } GSFunctionPointer &operator= (GSFunctionPointer &gsfp) {