Revision 793
Updated bay board wireless library... Doesn't work at all.
wl_error_group.c | ||
---|---|---|
45 | 45 |
int length); |
46 | 46 |
|
47 | 47 |
PacketGroupHandler wl_error_handler = |
48 |
{NULL, wl_error_response_receive, wl_error_handle_receive, NULL,WL_ERROR_GROUP}; |
|
48 |
{WL_ERROR_GROUP, NULL, |
|
49 |
wl_error_response_receive, wl_error_handle_receive, NULL}; |
|
49 | 50 |
|
50 | 51 |
void wl_error_response_receive(int frame, int received) |
51 | 52 |
{ |
... | ... | |
60 | 61 |
* This function must be called before any other wl_error |
61 | 62 |
* function. |
62 | 63 |
**/ |
64 |
//TODO: this function is so simple, it *may* be beneficial to inline this function. testing of if |
|
65 |
// it reduces code size or not should be done to be sure. |
|
63 | 66 |
void wl_error_register(void) |
64 | 67 |
{ |
65 | 68 |
wl_register_packet_group(&wl_error_handler); |
... | ... | |
71 | 74 |
* |
72 | 75 |
* @see wl_error_register |
73 | 76 |
**/ |
77 |
//TODO: this function is so simple, it *may* be beneficial to inline this function. testing of if |
|
78 |
// it reduces code size or not should be done to be sure. |
|
74 | 79 |
void wl_error_unregister(void) |
75 | 80 |
{ |
76 | 81 |
wl_unregister_packet_group(&wl_error_handler); |
... | ... | |
113 | 118 |
* |
114 | 119 |
* @param str the error message to send |
115 | 120 |
**/ |
121 |
//TODO: this function is so simple, it *may* be beneficial to inline this function. testing of if |
|
122 |
// it reduces code size or not should be done to be sure. |
|
116 | 123 |
void wl_error_send_string(char* str) |
117 | 124 |
{ |
118 | 125 |
wl_send_global_packet(WL_ERROR_GROUP, WL_ERROR_STRING_TYPE, |
Also available in: Unified diff