Improved formatting

This commit is contained in:
BlackMark 2019-08-10 13:39:04 +02:00
parent 661bbfea7e
commit f1634a4dd7

3
io.hpp
View File

@ -377,7 +377,6 @@ class Port {
static inline void write(const uint8_t value) FORCE_INLINE
{
detail::reg_ptr_t portRegPtr = detail::getRegPtr<detail::getPORT(port)>();
*portRegPtr = value;
}
@ -385,11 +384,9 @@ class Port {
{
#ifdef HARDWARE_TOGGLE
detail::reg_ptr_t pinRegPtr = detail::getRegPtr<detail::getPIN(port)>();
*pinRegPtr = 0xFF;
#else
detail::reg_ptr_t portRegPtr = detail::getRegPtr<detail::getPORT(port)>();
*portRegPtr = ~(*portRegPtr);
#endif
}