And what is the sense of this renaming?
I think the concern was that the old name implied that the function would enable faster USB communications. Or even USB2.0 or USB3.0.
We had a fairly long debate over a couple of days on IRC about a replacement name. This was the best we could come up with but I'm sure there would be no objection if there is a better suggestion?
Also set_mf() is a candidate for that.
Agreed.
As an educational note, I've learned that for something to test as
false in a Lua
if statement, it needs to be actually boolean
false or
nil.
So if you run this :
i=0
if( i ) then print("true') else print("false") end
the result will print out
true. The equivalent code in C would print out
false.
Fortunately, I would normally not code it that way - preferring to be explicit :
i=0
if( i ~= 0) then print("true') else print("false") end
so I don't think I've noticed this before. But I'm going to scan some of my scripts just in case.
Maybe this is obvious to everyone else but I think that I'll update the Lua wiki page somewhere with a note.
Edit : changing the return of set_mf() from int to boolean will break the 2000+ copies of kap_uav.lua, yass4.lua and meteor2.lua that have been downloaded so far. Not to mention the various version of the MF test script.