diegofernandes / arducam-osd

Automatically exported from code.google.com/p/arducam-osd
0 stars 0 forks source link

Use defines instead of one line functions (low priority improvement) #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In CONFIG_Func.pde

Change this type of functions:

boolean ISa(byte whichBit) {
  return getBit(panA_REG, whichBit);
}

to "defines"

#define ISa(whichBit) getBit(panA_REG, whichBit)

The first method requires more CPU cycles than the second one.

Original issue reported on code.google.com by modc...@gmail.com on 13 Jan 2012 at 10:18

GoogleCodeExporter commented 9 years ago
I'll handle this one.

Original comment by sbeni...@gmail.com on 17 Jan 2012 at 1:28

GoogleCodeExporter commented 9 years ago
The change for this is done now.

Original comment by sbeni...@gmail.com on 17 Jan 2012 at 1:51