Revision f8cf404d components/bluetooth/bluetooth-serial.cpp

View differences:

components/bluetooth/bluetooth-serial.cpp
3 3

  
4 4
#include <amiro/bluetooth/bluetooth-serial.hpp>
5 5

  
6
#include <global.hpp>
7

  
6 8
using namespace chibios_rt;
7 9
using namespace amiro;
8 10

  
11
extern Global global;
12

  
9 13
/*
10 14
 * Class constructor
11 15
 */
......
47 51
  length = recv_descriptor->bluetoothDescriptorGetPayloadLength();
48 52

  
49 53
  for (size_t i = 0; i < length; i++)
50
    chSequentialStreamPut((BaseSequentialStream*) &SD1, buffer[i]);
54
    chSequentialStreamPut((BaseSequentialStream*) &global.sercanmux1, buffer[i]);
51 55

  
52 56
  msg = iwrap->transport.bluetoothTransportGetStorageMailbox()->post((msg_t) recv_descriptor, TIME_INFINITE);
53 57
  if ((msg == RDY_RESET) || stopflag)

Also available in: Unified diff