mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
atusb/fw/: convert functions returning "int" to "bool"
Firmware size is down from 5612 to 3590 bytes. Wow !
This commit is contained in:
@@ -118,7 +118,7 @@ static void change_state(uint8_t new)
|
||||
}
|
||||
|
||||
|
||||
int mac_rx(int on)
|
||||
bool mac_rx(int on)
|
||||
{
|
||||
if (on) {
|
||||
mac_irq = handle_irq;
|
||||
@@ -178,7 +178,7 @@ static void do_tx(void *user)
|
||||
}
|
||||
|
||||
|
||||
int mac_tx(uint16_t flags, uint16_t len)
|
||||
bool mac_tx(uint16_t flags, uint16_t len)
|
||||
{
|
||||
if (len > MAX_PSDU)
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user