house keeping
This commit is contained in:
1 parent
93014fa500
commit
2963e1dade
2 files changed
+6
-6
No files matched your search
@@ -54,12 +54,12 @@ err_t BLEBas::begin(void)
|
||||
return ERROR_NONE;
|
||||
}
|
||||
|
||||
void BLEBas::write(uint8_t level)
|
||||
bool BLEBas::write(uint8_t level)
|
||||
{
|
||||
_battery.write(level);
|
||||
return _battery.write(level) > 0;
|
||||
}
|
||||
|
||||
void BLEBas::notify(uint8_t level)
|
||||
bool BLEBas::notify(uint8_t level)
|
||||
{
|
||||
_battery.notify(level);
|
||||
return _battery.notify(level);
|
||||
}
|
||||
@@ -51,8 +51,8 @@ class BLEBas : public BLEService
|
||||
|
||||
virtual err_t begin(void);
|
||||
|
||||
void write (uint8_t level);
|
||||
void notify(uint8_t level);
|
||||
bool write (uint8_t level);
|
||||
bool notify(uint8_t level);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user