Add const keyword to the demo function parameters where possible.
[pub/USBasp.git] / Demos / Host / Incomplete / BluetoothHost / BluetoothHost.c
index 0717294..1107bc0 100644 (file)
@@ -203,7 +203,7 @@ void Bluetooth_Host_Task(void)
  *\r
  *  \return Boolean true to accept the connection, false to reject it\r
  */\r
-bool Bluetooth_ConnectionRequest(uint8_t* RemoteAddress)\r
+bool Bluetooth_ConnectionRequest(const uint8_t* RemoteAddress)\r
 {\r
        printf_P(PSTR("Connection Request from Device %02X:%02X:%02X:%02X:%02X:%02X\r\n"),\r
                 RemoteAddress[5], RemoteAddress[4],\r
@@ -246,7 +246,7 @@ void Bluetooth_DisconnectionComplete(void)
  *\r
  *  \return Boolean true to accept the channel connection request, false to reject it\r
  */\r
-bool Bluetooth_ChannelConnectionRequest(uint16_t PSM)\r
+bool Bluetooth_ChannelConnectionRequest(const uint16_t PSM)\r
 {\r
        /* Always accept channel connection requests regardless of PSM */\r
        return true;\r
@@ -259,7 +259,7 @@ bool Bluetooth_ChannelConnectionRequest(uint16_t PSM)
  *  \param[in] DataLen Length of the packet data, in bytes\r
  *  \param[in] Channel Bluetooth ACL data channel information structure for the packet's destination channel\r
  */\r
-void Bluetooth_PacketReceived(void* Data, uint16_t DataLen, Bluetooth_Channel_t* Channel)\r
+void Bluetooth_PacketReceived(void* Data, uint16_t DataLen, Bluetooth_Channel_t* const Channel)\r
 {\r
        switch (Channel->PSM)\r
        {\r