diff options
Diffstat (limited to 'ports/nrf/modules/machine/temp.c')
-rw-r--r-- | ports/nrf/modules/machine/temp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/nrf/modules/machine/temp.c b/ports/nrf/modules/machine/temp.c index 0d206fee47..aa20087c6c 100644 --- a/ports/nrf/modules/machine/temp.c +++ b/ports/nrf/modules/machine/temp.c @@ -91,13 +91,13 @@ int32_t temp_read(void) { /// Get temperature. static mp_obj_t machine_temp_read(mp_uint_t n_args, const mp_obj_t *args) { -#if BLUETOOTH_SD + #if BLUETOOTH_SD if (BLUETOOTH_STACK_ENABLED() == 1) { int32_t temp; (void)sd_temp_get(&temp); return MP_OBJ_NEW_SMALL_INT(temp / 4); // resolution of 0.25 degree celsius } -#endif // BLUETOOTH_SD + #endif // BLUETOOTH_SD return MP_OBJ_NEW_SMALL_INT(temp_read()); } |