mciupak / nrf24

nrf24l01 linux device driver
GNU General Public License v3.0
23 stars 13 forks source link

Write procedure can't be interrupted by any signal #9

Open wzab opened 4 years ago

wzab commented 4 years ago

Dear Marcin,

I'm afraid, your write procedure can't be interrupted (via CTRL+C or sending any signal) in case of any hardware problems. The reason is that you do not check the result of wait_event_interruptible in line: https://github.com/mciupak/nrf24/blob/b9b7ebd32686b67ecb007864cb0084ea17e70354/nrf24_if.c#L369 You should interrupt the write loop and report an error here.

With best regards, Wojtek