candidate is: boolean Input::getL1R1Status() Verify error

When I verify I get a error " candidate is: boolean Input::getL1R1Status() "

#ifndef _INPUT_H_
#define _INPUT_H_

/* *** Game commonly used defines ** */
#define  DIR_UP    1
#define  DIR_DOWN  2
#define  DIR_LEFT  3
#define  DIR_RIGHT 4

/* *** USB controller button defines and input method *** */
#define  BTN_NONE  0
#define  BTN_UP    1
#define  BTN_DOWN  2
#define  BTN_LEFT  3
#define  BTN_RIGHT  4
#define  BTN_START  5

#include <Arduino.h>
#include "config.h"

typedef uint8_t input_t;

void UsbTask();

class Input {
private:
  int controllerIndex;
  uint8_t curControl;
  uint8_t prevControl;  
  
public:
  Input(int controllerIndex);
  void init();
  input_t read();
  boolean getL1R1Status();
  void startRumble();
  void stopRumble();
};

#endif

Error Below :

In file included from C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\Canvas.h:6:0,
from C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\App.h:6,
from C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\App.cpp:2:
C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\LEDDriver.h:40:49: warning: ‘used’ attribute ignored [-Wattributes]
extern DMAMEM int displayMemory[LEDS_CHANNEL_16];
^
In file included from C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\Canvas.h:6:0,
from C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\Canvas.cpp:2:
C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\LEDDriver.h:40:49: warning: ‘used’ attribute ignored [-Wattributes]
extern DMAMEM int displayMemory[LEDS_CHANNEL_1
6];
^
C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\Canvas.cpp: In member function ‘boolean Canvas::printText(char*, unsigned int, int, int, int)’:
C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\Canvas.cpp:74:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<textLength; i++){
^
C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\Canvas.cpp: In member function ‘uint8_t Canvas::loadCharInBuffer(char)’:
C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\Canvas.cpp:97:12: warning: unused variable ‘tmpCharPix’ [-Wunused-variable]
uint8_t* tmpCharPix;
^
C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\Canvas.cpp:102:7: warning: unused variable ‘x’ [-Wunused-variable]
int x=0; int y=0;
^
In file included from firmware.ino:27:0:
C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\LEDDriver.h:40:49: warning: ‘used’ attribute ignored [-Wattributes]
extern DMAMEM int displayMemory[LEDS_CHANNEL_1*6];
^
In file included from C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\Input.cpp:1:0:
C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\Input.h: In constructor ‘Input::Input(int)’:
C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\Input.h:29:11: warning: ‘Input::prevControl’ will be initialized after [-Wreorder]
uint8_t prevControl;
^
C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\Input.h:28:11: warning: ‘uint8_t Input::curControl’ [-Wreorder]
uint8_t curControl;
^
C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\Input.cpp:57:1: warning: when initialized here [-Wreorder]
Input::Input(int controllerIndex) : controllerIndex(controllerIndex), prevControl(BTN_NONE), curControl(BTN_NONE)
^
C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\Input.cpp: At global scope:
Input.cpp:102: error: prototype for ‘uint8_t Input::getL1R1Status()’ does not match any in class ‘Input’
uint8_t Input::getL1R1Status(){
^
In file included from C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\Input.cpp:1:0:
Input.h:35: error: candidate is: boolean Input::getL1R1Status()
boolean getL1R1Status();

candidate is: boolean Input::getL1R1Status()

led-table-master.zip (42.2 KB)

Watch this.

When I verify I get a error " candidate is: boolean Input::getL1R1Status() "

No, you don't. You get:

C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\Input.cpp: At global scope: Input.cpp:102: error: prototype for 'uint8_t Input::getL1R1Status()' does not match any in class 'Input' uint8_t Input::getL1R1Status(){ ^ In file included from C:\Users\Dave\AppData\Local\Temp\build8488976240251840556.tmp\Input.cpp:1:0: Input.h:35: error: candidate is: boolean Input::getL1R1Status() boolean getL1R1Status();

candidate is: boolean Input::getL1R1Status()

You need to read the WHOLE message. It is telling you that the definition of the function in the header file for the class says that it returns a boolean. The implementation in the source file gets it wrong, and says that the function returns a uint8_t. The declaration and the implementation MUST match.

Found problem was uint8_t Input::getL1R1Status(){ Replaced with boolean Input::getL1R1Status(){ Was a error from old IDE to New Cheers for the help