HAL_Linux: fixed #if for linux builds

This commit is contained in:
Andrew Tridgell 2015-01-22 15:58:20 +11:00
parent 2b74d018fe
commit 61be4ce2d2

View File

@ -54,7 +54,7 @@ void LinuxUtil::_toneAlarm_timer_tick(){
void LinuxUtil::set_system_clock(uint64_t time_utc_usec)
{
#if CONFIG_HAL_BOARD_SUBTYPE != HAL_BOARD_SUBTYPE_NONE
#if CONFIG_HAL_BOARD_SUBTYPE != HAL_BOARD_SUBTYPE_LINUX_NONE
timespec ts;
ts.tv_sec = time_utc_usec/1.0e6;
ts.tv_nsec = (time_utc_usec % 1000000) * 1000;