Skip to content

Commit b6f1c60

Browse files
Remove cruft.
I'll do it for non-log entries separately.
1 parent 1e2a2ad commit b6f1c60

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

src/microbithal_js.c

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -387,59 +387,26 @@ const uint8_t *microbit_hal_get_font_data(char c) {
387387

388388
void microbit_hal_log_delete(bool full_erase) {
389389
mp_js_hal_log_delete(full_erase);
390-
/*
391-
uBit.log.clear(full_erase);
392-
*/
393390
}
394391

395392
void microbit_hal_log_set_mirroring(bool serial) {
396393
mp_js_hal_log_set_mirroring(serial);
397-
/*
398-
uBit.log.setSerialMirroring(serial);
399-
*/
400394
}
401395

402396
void microbit_hal_log_set_timestamp(int period) {
403397
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-
*/
413398
}
414399

415400
int microbit_hal_log_begin_row(void) {
416401
return mp_js_hal_log_begin_row();
417-
/*
418-
if (uBit.log.beginRow() != DEVICE_OK) {
419-
return -1;
420-
}
421-
return 0;
422-
*/
423402
}
424403

425404
int microbit_hal_log_end_row(void) {
426405
return mp_js_hal_log_end_row();
427-
/*
428-
if (uBit.log.endRow() != DEVICE_OK) {
429-
return -1;
430-
}
431-
return 0;
432-
*/
433406
}
434407

435408
int microbit_hal_log_data(const char *key, const char *value) {
436409
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-
*/
443410
}
444411

445412
// This is needed by the microbitfs implementation.

0 commit comments

Comments
 (0)