@@ -387,59 +387,26 @@ const uint8_t *microbit_hal_get_font_data(char c) {
387
387
388
388
void microbit_hal_log_delete (bool full_erase ) {
389
389
mp_js_hal_log_delete (full_erase );
390
- /*
391
- uBit.log.clear(full_erase);
392
- */
393
390
}
394
391
395
392
void microbit_hal_log_set_mirroring (bool serial ) {
396
393
mp_js_hal_log_set_mirroring (serial );
397
- /*
398
- uBit.log.setSerialMirroring(serial);
399
- */
400
394
}
401
395
402
396
void microbit_hal_log_set_timestamp (int period ) {
403
397
mp_js_hal_log_set_timestamp (period );
404
- /*
405
- static_assert(MICROBIT_HAL_LOG_TIMESTAMP_NONE == (int)TimeStampFormat::None);
406
- static_assert(MICROBIT_HAL_LOG_TIMESTAMP_MILLISECONDS == (int)TimeStampFormat::Milliseconds);
407
- static_assert(MICROBIT_HAL_LOG_TIMESTAMP_SECONDS == (int)TimeStampFormat::Seconds);
408
- static_assert(MICROBIT_HAL_LOG_TIMESTAMP_MINUTES == (int)TimeStampFormat::Minutes);
409
- static_assert(MICROBIT_HAL_LOG_TIMESTAMP_HOURS == (int)TimeStampFormat::Hours);
410
- static_assert(MICROBIT_HAL_LOG_TIMESTAMP_DAYS == (int)TimeStampFormat::Days);
411
- uBit.log.setTimeStamp((TimeStampFormat)period);
412
- */
413
398
}
414
399
415
400
int microbit_hal_log_begin_row (void ) {
416
401
return mp_js_hal_log_begin_row ();
417
- /*
418
- if (uBit.log.beginRow() != DEVICE_OK) {
419
- return -1;
420
- }
421
- return 0;
422
- */
423
402
}
424
403
425
404
int microbit_hal_log_end_row (void ) {
426
405
return mp_js_hal_log_end_row ();
427
- /*
428
- if (uBit.log.endRow() != DEVICE_OK) {
429
- return -1;
430
- }
431
- return 0;
432
- */
433
406
}
434
407
435
408
int microbit_hal_log_data (const char * key , const char * value ) {
436
409
return mp_js_hal_log_data (key , value );
437
- /*
438
- if (uBit.log.logData(key, value) != DEVICE_OK) {
439
- return -1;
440
- }
441
- return 0;
442
- */
443
410
}
444
411
445
412
// This is needed by the microbitfs implementation.
0 commit comments