some TODOs

This commit is contained in:
merlokk 2019-02-01 21:35:45 +02:00
parent 429e4b2a77
commit 19627a959a

View File

@ -225,6 +225,9 @@ void WTX_clear()
bool WTX_on(int WTX_time) bool WTX_on(int WTX_time)
{ {
WTX_clear(); WTX_clear();
// TODO: start interrupt
return true; return true;
} }
@ -232,8 +235,7 @@ bool WTX_process(int read_timeout);
bool WTX_off() bool WTX_off()
{ {
if (WTX_fail) // TODO: stop interrupt
return false;
// read data if we sent WTX // read data if we sent WTX
if (WTX_sent) if (WTX_sent)
@ -242,6 +244,9 @@ bool WTX_off()
return false; return false;
} }
if (WTX_fail)
return false;
return true; return true;
} }