@@ -33,8 +33,9 @@ static btstack_timer_source_t heartbeat;
3333static btstack_packet_callback_registration_t hci_event_callback_registration ;
3434
3535extern uint8_t const profile_data [];
36+ static void poll_temp (void );
3637
37- void packet_handler (uint8_t packet_type , uint16_t channel , uint8_t * packet , uint16_t size ) {
38+ static void packet_handler (uint8_t packet_type , uint16_t channel , uint8_t * packet , uint16_t size ) {
3839 UNUSED (size );
3940 UNUSED (channel );
4041 bd_addr_t local_addr ;
@@ -72,7 +73,7 @@ void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint
7273 }
7374}
7475
75- uint16_t att_read_callback (hci_con_handle_t connection_handle , uint16_t att_handle , uint16_t offset , uint8_t * buffer , uint16_t buffer_size ) {
76+ static uint16_t att_read_callback (hci_con_handle_t connection_handle , uint16_t att_handle , uint16_t offset , uint8_t * buffer , uint16_t buffer_size ) {
7677 UNUSED (connection_handle );
7778
7879 if (att_handle == ATT_CHARACTERISTIC_ORG_BLUETOOTH_CHARACTERISTIC_TEMPERATURE_01_VALUE_HANDLE ){
@@ -81,7 +82,7 @@ uint16_t att_read_callback(hci_con_handle_t connection_handle, uint16_t att_hand
8182 return 0 ;
8283}
8384
84- int att_write_callback (hci_con_handle_t connection_handle , uint16_t att_handle , uint16_t transaction_mode , uint16_t offset , uint8_t * buffer , uint16_t buffer_size ) {
85+ static int att_write_callback (hci_con_handle_t connection_handle , uint16_t att_handle , uint16_t transaction_mode , uint16_t offset , uint8_t * buffer , uint16_t buffer_size ) {
8586 UNUSED (transaction_mode );
8687 UNUSED (offset );
8788 UNUSED (buffer_size );
@@ -95,7 +96,7 @@ int att_write_callback(hci_con_handle_t connection_handle, uint16_t att_handle,
9596 return 0 ;
9697}
9798
98- void poll_temp (void ) {
99+ static void poll_temp (void ) {
99100 adc_select_input (ADC_CHANNEL_TEMPSENSOR );
100101 uint32_t raw32 = adc_read ();
101102 const uint32_t bits = 12 ;
0 commit comments