File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
examples/Peripheral/custom_hrm Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ void setupHRM(void)
160160 bslc.setPermission (SECMODE_OPEN, SECMODE_NO_ACCESS);
161161 bslc.setFixedLen (1 );
162162 bslc.begin ();
163- bslc.write (2 ); // Set the characteristic to 'Wrist' (2)
163+ bslc.write8 (2 ); // Set the characteristic to 'Wrist' (2)
164164}
165165
166166void connect_callback (uint16_t conn_handle)
Original file line number Diff line number Diff line change @@ -57,10 +57,10 @@ err_t BLEBas::begin(void)
5757
5858bool BLEBas::write (uint8_t level)
5959{
60- return _battery.write (level) > 0 ;
60+ return _battery.write8 (level) > 0 ;
6161}
6262
6363bool BLEBas::notify (uint8_t level)
6464{
65- return _battery.notify (level);
65+ return _battery.notify8 (level);
6666}
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ err_t BLEDfu::begin(void)
196196 chr_revision.setProperties (CHR_PROPS_READ);
197197 chr_revision.setFixedLen (2 );
198198 VERIFY_STATUS ( chr_revision.begin ());
199- chr_revision.write ( ( uint16_t ) DFU_REV_APPMODE);
199+ chr_revision.write16 ( DFU_REV_APPMODE);
200200
201201 return ERROR_NONE;
202202}
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ err_t BLEHidGeneric::begin(void)
145145 _chr_protocol->setProperties (CHR_PROPS_READ | CHR_PROPS_WRITE_WO_RESP);
146146 _chr_protocol->setFixedLen (1 );
147147 VERIFY_STATUS ( _chr_protocol->begin () );
148- _chr_protocol->write ( ( uint8_t ) 1 );
148+ _chr_protocol->write8 ( 1 );
149149 }
150150
151151 // Input reports
@@ -179,7 +179,7 @@ err_t BLEHidGeneric::begin(void)
179179
180180 VERIFY_STATUS ( _chr_outputs[i].begin () );
181181
182- _chr_outputs[i].write ( ( uint8_t ) 0 );
182+ _chr_outputs[i].write8 ( 0 );
183183 }
184184
185185 // Report Map (HID Report Descriptor)
@@ -205,7 +205,7 @@ err_t BLEHidGeneric::begin(void)
205205 _chr_boot_keyboard_output->setFixedLen (1 ); // boot keyboard is 1 byte
206206 _chr_boot_keyboard_output->setPermission (SECMODE_ENC_NO_MITM, SECMODE_NO_ACCESS);
207207 VERIFY_STATUS (_chr_boot_keyboard_output->begin ());
208- _chr_boot_keyboard_output->write (( uint8_t ) 0 );
208+ _chr_boot_keyboard_output->write8 ( 0 );
209209 }
210210
211211 // Boot Mouse Input Report
You can’t perform that action at this time.
0 commit comments