I you call it, the node will flood you with error because the scan are not available.
But this is normal because you asked it to stop sending the scan.
Fortunately enough there is a function called laser.isScanning() so I added it.
Unfortunately when because of reformatting the code it looks like I changed a lot of stuff in the end. it is really just one line
See line 193 and closing the bracket again ..
I have seen a bug with the service stop scan.
I you call it, the node will flood you with error because the scan are not available. But this is normal because you asked it to stop sending the scan.
Fortunately enough there is a function called laser.isScanning() so I added it.
Unfortunately when because of reformatting the code it looks like I changed a lot of stuff in the end. it is really just one line See line 193 and closing the bracket again ..