Skip to content

Commit 2f9ed3e

Browse files
committed
more clean up
1 parent 9e188d7 commit 2f9ed3e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ void softdev_mbr_init(void)
157157
//--------------------------------------------------------------------+
158158
int main(void)
159159
{
160-
PRINTF("Bootlaoder Start\r\n");
161-
162160
// Populate Boot Address and MBR Param into MBR if not already
163161
// MBR_BOOTLOADER_ADDR/MBR_PARAM_PAGE_ADDR are used if available, else UICR registers are used
164162
// Note: skip it for now since this will prevent us to change the size of bootloader in the future
@@ -190,6 +188,8 @@ int main(void)
190188
board_init();
191189
bootloader_init();
192190

191+
PRINTF("Bootloader Start\r\n");
192+
193193
led_state(STATE_BOOTLOADER_STARTED);
194194

195195
// When updating SoftDevice, bootloader will reset before swapping SD
@@ -320,7 +320,7 @@ int main(void)
320320
* "Master Boot Record and SoftDevice initializaton procedure"
321321
*
322322
* @param[in] init_softdevice true if SoftDevice should be initialized. The SoftDevice must only
323-
* be initialized if a chip reset has occured. Soft reset (jump ) from
323+
* be initialized if a chip reset has occurred. Soft reset (jump ) from
324324
* application must not reinitialize the SoftDevice.
325325
*/
326326
static uint32_t softdev_init(bool init_softdevice)
@@ -359,7 +359,7 @@ static uint32_t softdev_init(bool init_softdevice)
359359
// NRF_DFU_BLE_REQUIRES_BONDS
360360
varclr(&blecfg);
361361
blecfg.gatts_cfg.service_changed.service_changed = 1;
362-
sd_ble_cfg_set(BLE_GATTS_CFG_SERVICE_CHANGED, &blecfg, ram_start) ;
362+
sd_ble_cfg_set(BLE_GATTS_CFG_SERVICE_CHANGED, &blecfg, ram_start);
363363

364364
// ATT MTU
365365
varclr(&blecfg);
@@ -471,7 +471,7 @@ uint32_t proc_soc(void)
471471
return err;
472472
}
473473

474-
void ada_sd_task(void* evt_data, uint16_t evt_size)
474+
void proc_sd_task(void* evt_data, uint16_t evt_size)
475475
{
476476
(void) evt_data;
477477
(void) evt_size;
@@ -486,7 +486,7 @@ void ada_sd_task(void* evt_data, uint16_t evt_size)
486486
void SD_EVT_IRQHandler(void)
487487
{
488488
// Use App Scheduler to defer handling code in non-isr context
489-
app_sched_event_put(NULL, 0, ada_sd_task);
489+
app_sched_event_put(NULL, 0, proc_sd_task);
490490
}
491491

492492

0 commit comments

Comments
 (0)