Revision f8cf404d components/bluetooth/bluetooth-iwrap.cpp
components/bluetooth/bluetooth-iwrap.cpp | ||
---|---|---|
6 | 6 |
#include <amiro/bluetooth/bluetooth-iwrap.hpp> |
7 | 7 |
#include <amiro/bluetooth/bluetooth-connector.hpp> |
8 | 8 |
|
9 |
#include <global.hpp> |
|
10 |
|
|
9 | 11 |
using namespace chibios_rt; |
10 | 12 |
using namespace amiro; |
11 | 13 |
|
14 |
extern Global global; |
|
15 |
|
|
12 | 16 |
/* |
13 | 17 |
* Class constructor |
14 | 18 |
*/ |
... | ... | |
52 | 56 |
|
53 | 57 |
for (size_t i = 0; i < length; i++) { |
54 | 58 |
// print out received chars |
55 |
chSequentialStreamPut((BaseSequentialStream*) &SD1, buffer[i]);
|
|
59 |
chSequentialStreamPut((BaseSequentialStream*) &global.sercanmux1, buffer[i]);
|
|
56 | 60 |
} |
57 | 61 |
|
58 | 62 |
// reset block |
... | ... | |
135 | 139 |
|
136 | 140 |
size_t length = strlen(cmd); |
137 | 141 |
// for (size_t i = 0; i < length; i++) |
138 |
// chSequentialStreamPut((BaseSequentialStream*) &SD1, cmd[i]); // To display the command
|
|
142 |
// chSequentialStreamPut((BaseSequentialStream*) &global.sercanmux1, cmd[i]); // To display the command
|
|
139 | 143 |
|
140 | 144 |
// To send the string command to WT12 bluetooth chip |
141 | 145 |
iwrapTransmit(HOST_IWRAP_PLAIN_LINKID,(uint8_t*) cmd, length); |
Also available in: Unified diff