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)
160
160
bslc.setPermission (SECMODE_OPEN, SECMODE_NO_ACCESS);
161
161
bslc.setFixedLen (1 );
162
162
bslc.begin ();
163
- bslc.write (2 ); // Set the characteristic to 'Wrist' (2)
163
+ bslc.write8 (2 ); // Set the characteristic to 'Wrist' (2)
164
164
}
165
165
166
166
void 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)
57
57
58
58
bool BLEBas::write (uint8_t level)
59
59
{
60
- return _battery.write (level) > 0 ;
60
+ return _battery.write8 (level) > 0 ;
61
61
}
62
62
63
63
bool BLEBas::notify (uint8_t level)
64
64
{
65
- return _battery.notify (level);
65
+ return _battery.notify8 (level);
66
66
}
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ err_t BLEDfu::begin(void)
196
196
chr_revision.setProperties (CHR_PROPS_READ);
197
197
chr_revision.setFixedLen (2 );
198
198
VERIFY_STATUS ( chr_revision.begin ());
199
- chr_revision.write ( ( uint16_t ) DFU_REV_APPMODE);
199
+ chr_revision.write16 ( DFU_REV_APPMODE);
200
200
201
201
return ERROR_NONE;
202
202
}
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ err_t BLEHidGeneric::begin(void)
145
145
_chr_protocol->setProperties (CHR_PROPS_READ | CHR_PROPS_WRITE_WO_RESP);
146
146
_chr_protocol->setFixedLen (1 );
147
147
VERIFY_STATUS ( _chr_protocol->begin () );
148
- _chr_protocol->write ( ( uint8_t ) 1 );
148
+ _chr_protocol->write8 ( 1 );
149
149
}
150
150
151
151
// Input reports
@@ -179,7 +179,7 @@ err_t BLEHidGeneric::begin(void)
179
179
180
180
VERIFY_STATUS ( _chr_outputs[i].begin () );
181
181
182
- _chr_outputs[i].write ( ( uint8_t ) 0 );
182
+ _chr_outputs[i].write8 ( 0 );
183
183
}
184
184
185
185
// Report Map (HID Report Descriptor)
@@ -205,7 +205,7 @@ err_t BLEHidGeneric::begin(void)
205
205
_chr_boot_keyboard_output->setFixedLen (1 ); // boot keyboard is 1 byte
206
206
_chr_boot_keyboard_output->setPermission (SECMODE_ENC_NO_MITM, SECMODE_NO_ACCESS);
207
207
VERIFY_STATUS (_chr_boot_keyboard_output->begin ());
208
- _chr_boot_keyboard_output->write (( uint8_t ) 0 );
208
+ _chr_boot_keyboard_output->write8 ( 0 );
209
209
}
210
210
211
211
// Boot Mouse Input Report
You can’t perform that action at this time.
0 commit comments